Compare commits
No commits in common. "f65975316b19536fab5691c8ca243035b13e0508" and "dd484dd4aefd6d6c21879b0dd809d62b498d37ad" have entirely different histories.
f65975316b
...
dd484dd4ae
@ -43,14 +43,9 @@ vim.api.nvim_create_autocmd({ "BufReadPost", "BufNewFile" }, {
|
|||||||
if vim.bo.filetype ~= "make" then
|
if vim.bo.filetype ~= "make" then
|
||||||
vim.opt_local.expandtab = true
|
vim.opt_local.expandtab = true
|
||||||
end
|
end
|
||||||
local ft = vim.bo.filetype
|
vim.opt_local.ts = 4
|
||||||
local indent = 4
|
vim.opt_local.sw = 4
|
||||||
if ft == "ruby" or ft == "html" or ft == "xml" then
|
vim.opt_local.sts = 4
|
||||||
indent = 2
|
|
||||||
end
|
|
||||||
vim.opt_local.ts = indent
|
|
||||||
vim.opt_local.sw = indent
|
|
||||||
vim.opt_local.sts = indent
|
|
||||||
vim.opt_local.cinoptions = ":0,g0"
|
vim.opt_local.cinoptions = ":0,g0"
|
||||||
end)
|
end)
|
||||||
end,
|
end,
|
||||||
|
|||||||
@ -8,11 +8,7 @@ if exists("b:current_syntax")
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if !exists("b:propane_subtype")
|
if !exists("b:propane_subtype")
|
||||||
if search('\<import\s\+\%(std\|core\)\.', 'nw') > 0
|
|
||||||
let b:propane_subtype = "d"
|
let b:propane_subtype = "d"
|
||||||
else
|
|
||||||
let b:propane_subtype = "cpp"
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
exe "syn include @propaneTarget syntax/".b:propane_subtype.".vim"
|
exe "syn include @propaneTarget syntax/".b:propane_subtype.".vim"
|
||||||
@ -24,7 +20,7 @@ syn match propaneOperator "->"
|
|||||||
syn match propaneFieldAlias ":[a-zA-Z0-9_]\+" contains=propaneFieldOperator
|
syn match propaneFieldAlias ":[a-zA-Z0-9_]\+" contains=propaneFieldOperator
|
||||||
syn match propaneFieldOperator ":" contained
|
syn match propaneFieldOperator ":" contained
|
||||||
syn match propaneOperator "?"
|
syn match propaneOperator "?"
|
||||||
syn keyword propaneKeyword context_user_fields drop free_token_node lex_fn module noline on_token_node prefix ptype start token token_user_fields tokenid tree tree_prefix tree_suffix
|
syn keyword propaneKeyword drop free_token_node free_token_user_fields module prefix ptype start token token_user_fields tokenid tree tree_prefix tree_suffix
|
||||||
|
|
||||||
syn region propaneRegex start="/" end="/" skip="\v\\\\|\\/"
|
syn region propaneRegex start="/" end="/" skip="\v\\\\|\\/"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user