update
This commit is contained in:
parent
e9bb11be97
commit
c2e3b534b0
|
@ -4,8 +4,15 @@ snippet @m "@media ..."
|
||||||
}
|
}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
snippet lg "linear-gradient( ... )"
|
||||||
|
linear-gradient(
|
||||||
|
${1:to bottom},
|
||||||
|
${2:transparent},
|
||||||
|
${3:transparent}
|
||||||
|
)$0
|
||||||
|
endsnippet
|
||||||
|
|
||||||
snippet bglg "background: linear-gradient ..."
|
snippet bglg "background: linear-gradient ..."
|
||||||
background-color: ${1:transparent};
|
|
||||||
background: linear-gradient(
|
background: linear-gradient(
|
||||||
${2:to bottom},
|
${2:to bottom},
|
||||||
${3:transparent},
|
${3:transparent},
|
||||||
|
@ -111,3 +118,45 @@ endsnippet
|
||||||
snippet o "opacity: ... ;"
|
snippet o "opacity: ... ;"
|
||||||
opacity: ${1:0};
|
opacity: ${1:0};
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
snippet before "::before { ... }"
|
||||||
|
${1:&}::before {
|
||||||
|
content: '$2';
|
||||||
|
display: ${3:block};
|
||||||
|
position: ${4:absolute};
|
||||||
|
width: ${5:100%};
|
||||||
|
height: ${6:100%};
|
||||||
|
${7:top}: ${8:0};
|
||||||
|
${9:left}: ${10:0};
|
||||||
|
}
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet after "::before { ... }"
|
||||||
|
${1:&}::after {
|
||||||
|
content: '$2';
|
||||||
|
display: ${3:block};
|
||||||
|
position: ${4:absolute};
|
||||||
|
width: ${5:100%};
|
||||||
|
height: ${6:100%};
|
||||||
|
${7:top}: ${8:0};
|
||||||
|
${9:left}: ${10:0};
|
||||||
|
}
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet befaft "::before, ::after { ... }"
|
||||||
|
${1:&}::before {
|
||||||
|
$1::after {
|
||||||
|
content: '$2';
|
||||||
|
display: ${3:block};
|
||||||
|
position: ${4:absolute};
|
||||||
|
width: ${5:100%};
|
||||||
|
height: ${6:100%};
|
||||||
|
${7:top}: ${8:0};
|
||||||
|
${9:left}: ${10:0};
|
||||||
|
$0
|
||||||
|
}
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet bs "box-shadow ...;"
|
||||||
|
box-shadow: ${1:0} ${2:0} $3px $4px ${5:#000} ${6:inset};
|
||||||
|
endsnippet
|
||||||
|
|
|
@ -1,29 +1,2 @@
|
||||||
extends css
|
extends css
|
||||||
|
|
||||||
snippet befabs "&::before (absolute) skeleton"
|
|
||||||
&::before {
|
|
||||||
content: '';
|
|
||||||
display: block;
|
|
||||||
position: absolute;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
left: 0;
|
|
||||||
top: 0;
|
|
||||||
|
|
||||||
$0
|
|
||||||
}
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet aftabs "&::after (absolute) skeleton"
|
|
||||||
&::after {
|
|
||||||
content: '';
|
|
||||||
display: block;
|
|
||||||
position: absolute;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
left: 0;
|
|
||||||
top: 0;
|
|
||||||
|
|
||||||
$0
|
|
||||||
}
|
|
||||||
endsnippet
|
|
||||||
|
|
|
@ -55,14 +55,14 @@ if ($TERM =~ '256' || &t_Co >= 256) || has("gui_running")
|
||||||
hi ColorColumn ctermbg=232 ctermfg=NONE cterm=NONE guibg=#1B1C1D guifg=NONE gui=NONE
|
hi ColorColumn ctermbg=232 ctermfg=NONE cterm=NONE guibg=#1B1C1D guifg=NONE gui=NONE
|
||||||
hi SignColumn ctermbg=234 ctermfg=250 cterm=NONE guibg=#202122 guifg=#aeadad gui=NONE
|
hi SignColumn ctermbg=234 ctermfg=250 cterm=NONE guibg=#202122 guifg=#aeadad gui=NONE
|
||||||
hi CursorLine ctermbg=232 ctermfg=NONE cterm=NONE guibg=#1B1C1D guifg=NONE gui=NONE
|
hi CursorLine ctermbg=232 ctermfg=NONE cterm=NONE guibg=#1B1C1D guifg=NONE gui=NONE
|
||||||
hi Title ctermbg=NONE ctermfg=247 cterm=bold guibg=NONE guifg=#9a9393 gui=bold
|
hi Title ctermbg=NONE ctermfg=255 cterm=bold guibg=NONE guifg=#eee4e4 gui=bold
|
||||||
hi LineNr ctermbg=234 ctermfg=240 cterm=NONE guibg=#202122 guifg=#5d5959 gui=NONE
|
hi LineNr ctermbg=234 ctermfg=238 cterm=NONE guibg=#202122 guifg=#494646 gui=NONE
|
||||||
hi CursorLineNr ctermbg=234 ctermfg=244 cterm=NONE guibg=#202122 guifg=#857f7f gui=NONE
|
hi CursorLineNr ctermbg=234 ctermfg=243 cterm=bold guibg=#202122 guifg=#716c6c gui=bold
|
||||||
hi Pmenu ctermbg=237 ctermfg=244 cterm=NONE guibg=#333535 guifg=#857f7f gui=NONE
|
hi Pmenu ctermbg=237 ctermfg=244 cterm=NONE guibg=#333535 guifg=#857f7f gui=NONE
|
||||||
hi PmenuSbar ctermbg=237 ctermfg=237 cterm=NONE guibg=#333535 guifg=#333535 gui=NONE
|
hi PmenuSbar ctermbg=237 ctermfg=237 cterm=NONE guibg=#333535 guifg=#333535 gui=NONE
|
||||||
hi PmenuSel ctermbg=237 ctermfg=250 cterm=bold guibg=#333535 guifg=#aeadad gui=bold
|
hi PmenuSel ctermbg=237 ctermfg=250 cterm=bold guibg=#333535 guifg=#aeadad gui=bold
|
||||||
hi PmenuThumb ctermbg=244 ctermfg=244 cterm=NONE guibg=#857f7f guifg=#857f7f gui=NONE
|
hi PmenuThumb ctermbg=244 ctermfg=244 cterm=NONE guibg=#857f7f guifg=#857f7f gui=NONE
|
||||||
hi SpecialKey ctermbg=NONE ctermfg=124 cterm=NONE guibg=NONE guifg=#655757 gui=NONE
|
hi SpecialKey ctermbg=NONE ctermfg=124 cterm=NONE guibg=NONE guifg=#d1bab9 gui=NONE
|
||||||
hi DiffAdd ctermbg=22 ctermfg=NONE cterm=NONE guibg=#202820 guifg=NONE gui=NONE
|
hi DiffAdd ctermbg=22 ctermfg=NONE cterm=NONE guibg=#202820 guifg=NONE gui=NONE
|
||||||
hi DiffChange ctermbg=17 ctermfg=NONE cterm=NONE guibg=#242528 guifg=NONE gui=NONE
|
hi DiffChange ctermbg=17 ctermfg=NONE cterm=NONE guibg=#242528 guifg=NONE gui=NONE
|
||||||
hi DiffDelete ctermbg=52 ctermfg=NONE cterm=NONE guibg=#282020 guifg=NONE gui=NONE
|
hi DiffDelete ctermbg=52 ctermfg=NONE cterm=NONE guibg=#282020 guifg=NONE gui=NONE
|
||||||
|
@ -101,7 +101,7 @@ if ($TERM =~ '256' || &t_Co >= 256) || has("gui_running")
|
||||||
hi StatusLineDivInput ctermbg=17 ctermfg=17 cterm=NONE guibg=#384046 guifg=#384046 gui=NONE
|
hi StatusLineDivInput ctermbg=17 ctermfg=17 cterm=NONE guibg=#384046 guifg=#384046 gui=NONE
|
||||||
hi StatusLineDivMod ctermbg=124 ctermfg=124 cterm=NONE guibg=#655757 guifg=#655757 gui=NONE
|
hi StatusLineDivMod ctermbg=124 ctermfg=124 cterm=NONE guibg=#655757 guifg=#655757 gui=NONE
|
||||||
hi StatusLineDivModActive ctermbg=124 ctermfg=124 cterm=NONE guibg=#916c6c guifg=#916c6c gui=NONE
|
hi StatusLineDivModActive ctermbg=124 ctermfg=124 cterm=NONE guibg=#916c6c guifg=#916c6c gui=NONE
|
||||||
hi StatusLineFileInfo ctermbg=NONE ctermfg=243 cterm=italic guibg=NONE guifg=#716c6c gui=italic
|
hi StatusLineFileInfo ctermbg=NONE ctermfg=240 cterm=italic guibg=NONE guifg=#5d5d5d gui=italic
|
||||||
hi StatusLineFile ctermbg=238 ctermfg=247 cterm=italic guibg=#3f3f3f guifg=#9a9393 gui=italic
|
hi StatusLineFile ctermbg=238 ctermfg=247 cterm=italic guibg=#3f3f3f guifg=#9a9393 gui=italic
|
||||||
hi StatusLineFileActive ctermbg=238 ctermfg=250 cterm=italic guibg=#3f3f3f guifg=#aeadad gui=italic
|
hi StatusLineFileActive ctermbg=238 ctermfg=250 cterm=italic guibg=#3f3f3f guifg=#aeadad gui=italic
|
||||||
hi StatusLineDir ctermbg=238 ctermfg=243 cterm=italic guibg=#3f3f3f guifg=#716c6c gui=italic
|
hi StatusLineDir ctermbg=238 ctermfg=243 cterm=italic guibg=#3f3f3f guifg=#716c6c gui=italic
|
||||||
|
@ -115,17 +115,17 @@ if ($TERM =~ '256' || &t_Co >= 256) || has("gui_running")
|
||||||
hi StatusLineWarning ctermbg=238 ctermfg=244 cterm=bold guibg=#3f3f3f guifg=#857f7f gui=bold
|
hi StatusLineWarning ctermbg=238 ctermfg=244 cterm=bold guibg=#3f3f3f guifg=#857f7f gui=bold
|
||||||
hi StatusLineWarningActive ctermbg=NONE ctermfg=124 cterm=bold guibg=NONE guifg=#725454 gui=bold
|
hi StatusLineWarningActive ctermbg=NONE ctermfg=124 cterm=bold guibg=NONE guifg=#725454 gui=bold
|
||||||
hi LinterDash ctermbg=NONE ctermfg=238 cterm=NONE guibg=NONE guifg=#494646 gui=NONE
|
hi LinterDash ctermbg=NONE ctermfg=238 cterm=NONE guibg=NONE guifg=#494646 gui=NONE
|
||||||
hi LinterDashActive ctermbg=NONE ctermfg=240 cterm=NONE guibg=NONE guifg=#5d5959 gui=NONE
|
hi LinterDashActive ctermbg=NONE ctermfg=240 cterm=NONE guibg=NONE guifg=#5d5d5d gui=NONE
|
||||||
hi LinterError ctermbg=NONE ctermfg=196 cterm=bold guibg=NONE guifg=#6a2e2e gui=bold
|
hi LinterError ctermbg=NONE ctermfg=243 cterm=bold guibg=NONE guifg=#716c6c gui=bold
|
||||||
hi LinterErrorActive ctermbg=NONE ctermfg=196 cterm=bold guibg=NONE guifg=#833838 gui=bold
|
hi LinterErrorActive ctermbg=NONE ctermfg=196 cterm=bold guibg=NONE guifg=#7D3636 gui=bold
|
||||||
hi LinterErrorStyle ctermbg=NONE ctermfg=196 cterm=NONE guibg=NONE guifg=#6a2e2e gui=NONE
|
hi LinterErrorStyle ctermbg=NONE ctermfg=243 cterm=NONE guibg=NONE guifg=#716c6c gui=NONE
|
||||||
hi LinterErrorStyleActive ctermbg=NONE ctermfg=196 cterm=NONE guibg=NONE guifg=#833838 gui=NONE
|
hi LinterErrorStyleActive ctermbg=NONE ctermfg=196 cterm=NONE guibg=NONE guifg=#7D3636 gui=NONE
|
||||||
hi LinterWarning ctermbg=NONE ctermfg=166 cterm=bold guibg=NONE guifg=#553d2b gui=bold
|
hi LinterWarning ctermbg=NONE ctermfg=240 cterm=bold guibg=NONE guifg=#5d5959 gui=bold
|
||||||
hi LinterWarningActive ctermbg=NONE ctermfg=166 cterm=bold guibg=NONE guifg=#775538 gui=bold
|
hi LinterWarningActive ctermbg=NONE ctermfg=124 cterm=bold guibg=NONE guifg=#725454 gui=bold
|
||||||
hi LinterWarningStyle ctermbg=NONE ctermfg=166 cterm=NONE guibg=NONE guifg=#553d2b gui=NONE
|
hi LinterWarningStyle ctermbg=NONE ctermfg=240 cterm=NONE guibg=NONE guifg=#5d5959 gui=NONE
|
||||||
hi LinterWarningStyleActive ctermbg=NONE ctermfg=166 cterm=NONE guibg=NONE guifg=#775538 gui=NONE
|
hi LinterWarningStyleActive ctermbg=NONE ctermfg=124 cterm=NONE guibg=NONE guifg=#725454 gui=NONE
|
||||||
hi LinterInfo ctermbg=NONE ctermfg=247 cterm=bold guibg=NONE guifg=#44402e gui=bold
|
hi LinterInfo ctermbg=NONE ctermfg=238 cterm=NONE guibg=NONE guifg=#494646 gui=NONE
|
||||||
hi LinterInfoActive ctermbg=NONE ctermfg=247 cterm=bold guibg=NONE guifg=#615b41 gui=bold
|
hi LinterInfoActive ctermbg=NONE ctermfg=240 cterm=NONE guibg=NONE guifg=#5d5d5d gui=NONE
|
||||||
hi GitGutterDelete ctermbg=NONE ctermfg=124 cterm=bold guibg=NONE guifg=#725454 gui=bold
|
hi GitGutterDelete ctermbg=NONE ctermfg=124 cterm=bold guibg=NONE guifg=#725454 gui=bold
|
||||||
hi GitGutterChange ctermbg=NONE ctermfg=19 cterm=bold guibg=NONE guifg=#596171 gui=bold
|
hi GitGutterChange ctermbg=NONE ctermfg=19 cterm=bold guibg=NONE guifg=#596171 gui=bold
|
||||||
hi GitGutterAdd ctermbg=NONE ctermfg=34 cterm=bold guibg=NONE guifg=#496349 gui=bold
|
hi GitGutterAdd ctermbg=NONE ctermfg=34 cterm=bold guibg=NONE guifg=#496349 gui=bold
|
||||||
|
@ -146,13 +146,13 @@ if ($TERM =~ '256' || &t_Co >= 256) || has("gui_running")
|
||||||
hi link cssTagName htmlTagName
|
hi link cssTagName htmlTagName
|
||||||
hi link cssPseudoClassId cssClassName
|
hi link cssPseudoClassId cssClassName
|
||||||
hi link cssKeyFrameSelector Label
|
hi link cssKeyFrameSelector Label
|
||||||
hi link cssFunctionName cssIdentifier
|
hi link cssFunctionName cssFunction
|
||||||
hi link cssBraces Noise
|
hi link cssBraces Noise
|
||||||
hi cssUnitDecorators ctermbg=NONE ctermfg=247 cterm=NONE guibg=NONE guifg=#9a9393 gui=NONE
|
hi cssUnitDecorators ctermbg=NONE ctermfg=247 cterm=NONE guibg=NONE guifg=#9a9393 gui=NONE
|
||||||
hi link scssSelector cssClass
|
hi link scssSelector cssClass
|
||||||
hi link scssSelectorName scssSelector
|
hi link scssSelectorName scssSelector
|
||||||
hi link scssSelectorChar cssIdentifier
|
hi link scssSelectorChar cssIdentifier
|
||||||
hi link scssFunctionName cssFunction
|
hi link scssFunctionName cssFunctionName
|
||||||
hi link scssMixin keyword
|
hi link scssMixin keyword
|
||||||
hi link scssMixinName cssFunction
|
hi link scssMixinName cssFunction
|
||||||
hi link scssampersand scssSelectorName
|
hi link scssampersand scssSelectorName
|
||||||
|
@ -288,29 +288,29 @@ if ($TERM =~ '256' || &t_Co >= 256) || has("gui_running")
|
||||||
hi link jsonQuote Noise
|
hi link jsonQuote Noise
|
||||||
hi link LspErrorText ErrorMsg
|
hi link LspErrorText ErrorMsg
|
||||||
hi link LspWarningText WarningMsg
|
hi link LspWarningText WarningMsg
|
||||||
hi LspInformationText ctermbg=NONE ctermfg=247 cterm=bold guibg=NONE guifg=#797532 gui=bold
|
hi link LspInformationText Question
|
||||||
hi LspHintText ctermbg=NONE ctermfg=247 cterm=NONE guibg=NONE guifg=#797532 gui=NONE
|
hi link LspHintText Question
|
||||||
hi CtrlPPrtBase ctermbg=247 ctermfg=240 cterm=bold guibg=#9a9393 guifg=#5d5959 gui=bold
|
hi CtrlPPrtBase ctermbg=255 ctermfg=0 cterm=bold guibg=#eee4e4 guifg=#131313 gui=bold
|
||||||
hi CtrlPPrtText ctermbg=247 ctermfg=232 cterm=bold guibg=#9a9393 guifg=#1f2121 gui=bold
|
hi CtrlPPrtText ctermbg=255 ctermfg=0 cterm=bold guibg=#eee4e4 guifg=#131313 gui=bold
|
||||||
hi CtrlPMatch ctermbg=NONE ctermfg=247 cterm=bold guibg=NONE guifg=#9a9393 gui=bold
|
hi CtrlPMatch ctermbg=NONE ctermfg=247 cterm=bold guibg=NONE guifg=#9a9393 gui=bold
|
||||||
hi CtrlPMode1 ctermbg=NONE ctermfg=250 cterm=bold guibg=NONE guifg=#aeadad gui=bold
|
hi CtrlPMode1 ctermbg=NONE ctermfg=250 cterm=bold guibg=NONE guifg=#aeadad gui=bold
|
||||||
hi CtrlPMode2 ctermbg=NONE ctermfg=244 cterm=NONE guibg=NONE guifg=#857f7f gui=NONE
|
hi CtrlPMode2 ctermbg=NONE ctermfg=244 cterm=NONE guibg=NONE guifg=#857f7f gui=NONE
|
||||||
hi CtrlPNoEntries ctermbg=NONE ctermfg=124 cterm=bold guibg=NONE guifg=#916c6c gui=bold
|
hi CtrlPNoEntries ctermbg=NONE ctermfg=196 cterm=bold guibg=NONE guifg=#916c6c gui=bold
|
||||||
hi CtrlPBufferNr ctermbg=NONE ctermfg=247 cterm=bold guibg=NONE guifg=#9a9393 gui=bold
|
hi CtrlPBufferNr ctermbg=NONE ctermfg=247 cterm=bold guibg=NONE guifg=#9a9393 gui=bold
|
||||||
hi CtrlPBufferInd ctermbg=NONE ctermfg=255 cterm=bold guibg=NONE guifg=#eee4e4 gui=bold
|
hi CtrlPBufferInd ctermbg=NONE ctermfg=255 cterm=bold guibg=NONE guifg=#eee4e4 gui=bold
|
||||||
hi CtrlPBufferPath ctermbg=NONE ctermfg=240 cterm=NONE guibg=NONE guifg=#5d5959 gui=NONE
|
hi CtrlPBufferPath ctermbg=NONE ctermfg=240 cterm=NONE guibg=NONE guifg=#5d5959 gui=NONE
|
||||||
hi CtrlPBufferHid ctermbg=NONE ctermfg=243 cterm=NONE guibg=NONE guifg=#716c6c gui=NONE
|
hi CtrlPBufferHid ctermbg=NONE ctermfg=243 cterm=NONE guibg=NONE guifg=#716c6c gui=NONE
|
||||||
hi CtrlPBufferHidMod ctermbg=NONE ctermfg=124 cterm=NONE guibg=NONE guifg=#7b6a6a gui=NONE
|
hi CtrlPBufferHidMod ctermbg=NONE ctermfg=88 cterm=NONE guibg=NONE guifg=#7b6a6a gui=NONE
|
||||||
hi link CtrlPBufferVis Normal
|
hi link CtrlPBufferVis Normal
|
||||||
hi CtrlPBufferVisMod ctermbg=NONE ctermfg=124 cterm=NONE guibg=NONE guifg=#725454 gui=NONE
|
hi CtrlPBufferVisMod ctermbg=NONE ctermfg=124 cterm=NONE guibg=NONE guifg=#725454 gui=NONE
|
||||||
hi CtrlPBufferCur ctermbg=NONE ctermfg=250 cterm=bold guibg=NONE guifg=#aeadad gui=bold
|
hi CtrlPBufferCur ctermbg=NONE ctermfg=250 cterm=bold guibg=NONE guifg=#aeadad gui=bold
|
||||||
hi CtrlPBufferCurMod ctermbg=NONE ctermfg=124 cterm=NONE guibg=NONE guifg=#916c6c gui=NONE
|
hi CtrlPBufferCurMod ctermbg=NONE ctermfg=196 cterm=NONE guibg=NONE guifg=#916c6c gui=NONE
|
||||||
hi CtrlPBufName ctermbg=NONE ctermfg=124 cterm=NONE guibg=NONE guifg=#916c6c gui=NONE
|
hi CtrlPBufName ctermbg=NONE ctermfg=247 cterm=NONE guibg=NONE guifg=#9a9393 gui=NONE
|
||||||
hi CtrlPTagKind ctermbg=NONE ctermfg=124 cterm=bold guibg=NONE guifg=#916c6c gui=bold
|
hi CtrlPTagKind ctermbg=NONE ctermfg=250 cterm=bold guibg=NONE guifg=#aeadad gui=bold
|
||||||
hi CtrlPqfLineCol ctermbg=NONE ctermfg=124 cterm=bold guibg=NONE guifg=#725454 gui=bold
|
hi CtrlPqfLineCol ctermbg=NONE ctermfg=124 cterm=bold guibg=NONE guifg=#725454 gui=bold
|
||||||
hi CtrlPUndoT ctermbg=NONE ctermfg=244 cterm=NONE guibg=NONE guifg=#857f7f gui=NONE
|
hi CtrlPUndoT ctermbg=NONE ctermfg=244 cterm=NONE guibg=NONE guifg=#857f7f gui=NONE
|
||||||
hi CtrlPUndoBr ctermbg=NONE ctermfg=237 cterm=NONE guibg=NONE guifg=#333535 gui=NONE
|
hi CtrlPUndoBr ctermbg=NONE ctermfg=238 cterm=NONE guibg=NONE guifg=#494646 gui=NONE
|
||||||
hi CtrlPUndoNr ctermbg=NONE ctermfg=238 cterm=NONE guibg=NONE guifg=#494646 gui=NONE
|
hi CtrlPUndoNr ctermbg=NONE ctermfg=240 cterm=NONE guibg=NONE guifg=#5d5959 gui=NONE
|
||||||
hi CtrlPUndoSv ctermbg=NONE ctermfg=124 cterm=NONE guibg=NONE guifg=#725454 gui=NONE
|
hi CtrlPUndoSv ctermbg=NONE ctermfg=124 cterm=NONE guibg=NONE guifg=#725454 gui=NONE
|
||||||
hi CtrlPUndoPo ctermbg=NONE ctermfg=250 cterm=bold guibg=NONE guifg=#aeadad gui=bold
|
hi CtrlPUndoPo ctermbg=NONE ctermfg=250 cterm=bold guibg=NONE guifg=#aeadad gui=bold
|
||||||
hi link Variable Function
|
hi link Variable Function
|
||||||
|
@ -359,9 +359,9 @@ elseif &t_Co == 8 || $TERM !~# '^linux' || &t_Co == 16
|
||||||
hi ColorColumn ctermbg=gray ctermfg=NONE cterm=NONE
|
hi ColorColumn ctermbg=gray ctermfg=NONE cterm=NONE
|
||||||
hi SignColumn ctermbg=black ctermfg=white cterm=NONE
|
hi SignColumn ctermbg=black ctermfg=white cterm=NONE
|
||||||
hi CursorLine ctermbg=gray ctermfg=NONE cterm=NONE
|
hi CursorLine ctermbg=gray ctermfg=NONE cterm=NONE
|
||||||
hi Title ctermbg=NONE ctermfg=darkgray cterm=bold
|
hi Title ctermbg=NONE ctermfg=white cterm=bold
|
||||||
hi LineNr ctermbg=black ctermfg=gray cterm=NONE
|
hi LineNr ctermbg=black ctermfg=gray cterm=NONE
|
||||||
hi CursorLineNr ctermbg=black ctermfg=darkgray cterm=NONE
|
hi CursorLineNr ctermbg=black ctermfg=gray cterm=bold
|
||||||
hi Pmenu ctermbg=black ctermfg=darkgray cterm=NONE
|
hi Pmenu ctermbg=black ctermfg=darkgray cterm=NONE
|
||||||
hi PmenuSbar ctermbg=black ctermfg=black cterm=NONE
|
hi PmenuSbar ctermbg=black ctermfg=black cterm=NONE
|
||||||
hi PmenuSel ctermbg=black ctermfg=white cterm=bold
|
hi PmenuSel ctermbg=black ctermfg=white cterm=bold
|
||||||
|
@ -379,8 +379,8 @@ elseif &t_Co == 8 || $TERM !~# '^linux' || &t_Co == 16
|
||||||
hi MatchParen ctermbg=darkblue ctermfg=NONE cterm=bold
|
hi MatchParen ctermbg=darkblue ctermfg=NONE cterm=bold
|
||||||
hi SpellBad ctermbg=NONE ctermfg=red cterm=NONE
|
hi SpellBad ctermbg=NONE ctermfg=red cterm=NONE
|
||||||
hi SpellCap ctermbg=NONE ctermfg=yellow cterm=NONE
|
hi SpellCap ctermbg=NONE ctermfg=yellow cterm=NONE
|
||||||
hi SpellLocal ctermbg=NONE ctermfg=darkgray cterm=NONE
|
hi SpellLocal ctermbg=NONE ctermfg=darkyellow cterm=NONE
|
||||||
hi SpellRare ctermbg=NONE ctermfg=darkgray cterm=NONE
|
hi SpellRare ctermbg=NONE ctermfg=darkyellow cterm=NONE
|
||||||
hi WildMenu ctermbg=gray ctermfg=white cterm=bold
|
hi WildMenu ctermbg=gray ctermfg=white cterm=bold
|
||||||
hi ErrorMsg ctermbg=NONE ctermfg=red cterm=bold
|
hi ErrorMsg ctermbg=NONE ctermfg=red cterm=bold
|
||||||
hi ModeMsg ctermbg=NONE ctermfg=white cterm=bold
|
hi ModeMsg ctermbg=NONE ctermfg=white cterm=bold
|
||||||
|
@ -420,16 +420,16 @@ elseif &t_Co == 8 || $TERM !~# '^linux' || &t_Co == 16
|
||||||
hi StatusLineWarningActive ctermbg=NONE ctermfg=red cterm=bold
|
hi StatusLineWarningActive ctermbg=NONE ctermfg=red cterm=bold
|
||||||
hi LinterDash ctermbg=NONE ctermfg=gray cterm=NONE
|
hi LinterDash ctermbg=NONE ctermfg=gray cterm=NONE
|
||||||
hi LinterDashActive ctermbg=NONE ctermfg=gray cterm=NONE
|
hi LinterDashActive ctermbg=NONE ctermfg=gray cterm=NONE
|
||||||
hi LinterError ctermbg=NONE ctermfg=red cterm=bold
|
hi LinterError ctermbg=NONE ctermfg=gray cterm=bold
|
||||||
hi LinterErrorActive ctermbg=NONE ctermfg=red cterm=bold
|
hi LinterErrorActive ctermbg=NONE ctermfg=red cterm=bold
|
||||||
hi LinterErrorStyle ctermbg=NONE ctermfg=red cterm=NONE
|
hi LinterErrorStyle ctermbg=NONE ctermfg=gray cterm=NONE
|
||||||
hi LinterErrorStyleActive ctermbg=NONE ctermfg=red cterm=NONE
|
hi LinterErrorStyleActive ctermbg=NONE ctermfg=red cterm=NONE
|
||||||
hi LinterWarning ctermbg=NONE ctermfg=yellow cterm=bold
|
hi LinterWarning ctermbg=NONE ctermfg=gray cterm=bold
|
||||||
hi LinterWarningActive ctermbg=NONE ctermfg=yellow cterm=bold
|
hi LinterWarningActive ctermbg=NONE ctermfg=red cterm=bold
|
||||||
hi LinterWarningStyle ctermbg=NONE ctermfg=yellow cterm=NONE
|
hi LinterWarningStyle ctermbg=NONE ctermfg=gray cterm=NONE
|
||||||
hi LinterWarningStyleActive ctermbg=NONE ctermfg=yellow cterm=NONE
|
hi LinterWarningStyleActive ctermbg=NONE ctermfg=red cterm=NONE
|
||||||
hi LinterInfo ctermbg=NONE ctermfg=darkgray cterm=bold
|
hi LinterInfo ctermbg=NONE ctermfg=gray cterm=NONE
|
||||||
hi LinterInfoActive ctermbg=NONE ctermfg=darkgray cterm=bold
|
hi LinterInfoActive ctermbg=NONE ctermfg=gray cterm=NONE
|
||||||
hi GitGutterDelete ctermbg=NONE ctermfg=red cterm=bold
|
hi GitGutterDelete ctermbg=NONE ctermfg=red cterm=bold
|
||||||
hi GitGutterChange ctermbg=NONE ctermfg=blue cterm=bold
|
hi GitGutterChange ctermbg=NONE ctermfg=blue cterm=bold
|
||||||
hi GitGutterAdd ctermbg=NONE ctermfg=green cterm=bold
|
hi GitGutterAdd ctermbg=NONE ctermfg=green cterm=bold
|
||||||
|
@ -450,13 +450,13 @@ elseif &t_Co == 8 || $TERM !~# '^linux' || &t_Co == 16
|
||||||
hi link cssTagName htmlTagName
|
hi link cssTagName htmlTagName
|
||||||
hi link cssPseudoClassId cssClassName
|
hi link cssPseudoClassId cssClassName
|
||||||
hi link cssKeyFrameSelector Label
|
hi link cssKeyFrameSelector Label
|
||||||
hi link cssFunctionName cssIdentifier
|
hi link cssFunctionName cssFunction
|
||||||
hi link cssBraces Noise
|
hi link cssBraces Noise
|
||||||
hi cssUnitDecorators ctermbg=NONE ctermfg=darkgray cterm=NONE
|
hi cssUnitDecorators ctermbg=NONE ctermfg=darkgray cterm=NONE
|
||||||
hi link scssSelector cssClass
|
hi link scssSelector cssClass
|
||||||
hi link scssSelectorName scssSelector
|
hi link scssSelectorName scssSelector
|
||||||
hi link scssSelectorChar cssIdentifier
|
hi link scssSelectorChar cssIdentifier
|
||||||
hi link scssFunctionName cssFunction
|
hi link scssFunctionName cssFunctionName
|
||||||
hi link scssMixin keyword
|
hi link scssMixin keyword
|
||||||
hi link scssMixinName cssFunction
|
hi link scssMixinName cssFunction
|
||||||
hi link scssampersand scssSelectorName
|
hi link scssampersand scssSelectorName
|
||||||
|
@ -592,10 +592,10 @@ elseif &t_Co == 8 || $TERM !~# '^linux' || &t_Co == 16
|
||||||
hi link jsonQuote Noise
|
hi link jsonQuote Noise
|
||||||
hi link LspErrorText ErrorMsg
|
hi link LspErrorText ErrorMsg
|
||||||
hi link LspWarningText WarningMsg
|
hi link LspWarningText WarningMsg
|
||||||
hi LspInformationText ctermbg=NONE ctermfg=darkgray cterm=bold
|
hi link LspInformationText Question
|
||||||
hi LspHintText ctermbg=NONE ctermfg=darkgray cterm=NONE
|
hi link LspHintText Question
|
||||||
hi CtrlPPrtBase ctermbg=darkgray ctermfg=gray cterm=bold
|
hi CtrlPPrtBase ctermbg=white ctermfg=black cterm=bold
|
||||||
hi CtrlPPrtText ctermbg=darkgray ctermfg=black cterm=bold
|
hi CtrlPPrtText ctermbg=white ctermfg=black cterm=bold
|
||||||
hi CtrlPMatch ctermbg=NONE ctermfg=darkgray cterm=bold
|
hi CtrlPMatch ctermbg=NONE ctermfg=darkgray cterm=bold
|
||||||
hi CtrlPMode1 ctermbg=NONE ctermfg=white cterm=bold
|
hi CtrlPMode1 ctermbg=NONE ctermfg=white cterm=bold
|
||||||
hi CtrlPMode2 ctermbg=NONE ctermfg=darkgray cterm=NONE
|
hi CtrlPMode2 ctermbg=NONE ctermfg=darkgray cterm=NONE
|
||||||
|
@ -604,16 +604,16 @@ elseif &t_Co == 8 || $TERM !~# '^linux' || &t_Co == 16
|
||||||
hi CtrlPBufferInd ctermbg=NONE ctermfg=white cterm=bold
|
hi CtrlPBufferInd ctermbg=NONE ctermfg=white cterm=bold
|
||||||
hi CtrlPBufferPath ctermbg=NONE ctermfg=gray cterm=NONE
|
hi CtrlPBufferPath ctermbg=NONE ctermfg=gray cterm=NONE
|
||||||
hi CtrlPBufferHid ctermbg=NONE ctermfg=gray cterm=NONE
|
hi CtrlPBufferHid ctermbg=NONE ctermfg=gray cterm=NONE
|
||||||
hi CtrlPBufferHidMod ctermbg=NONE ctermfg=red cterm=NONE
|
hi CtrlPBufferHidMod ctermbg=NONE ctermfg=darkred cterm=NONE
|
||||||
hi link CtrlPBufferVis Normal
|
hi link CtrlPBufferVis Normal
|
||||||
hi CtrlPBufferVisMod ctermbg=NONE ctermfg=red cterm=NONE
|
hi CtrlPBufferVisMod ctermbg=NONE ctermfg=red cterm=NONE
|
||||||
hi CtrlPBufferCur ctermbg=NONE ctermfg=white cterm=bold
|
hi CtrlPBufferCur ctermbg=NONE ctermfg=white cterm=bold
|
||||||
hi CtrlPBufferCurMod ctermbg=NONE ctermfg=red cterm=NONE
|
hi CtrlPBufferCurMod ctermbg=NONE ctermfg=red cterm=NONE
|
||||||
hi CtrlPBufName ctermbg=NONE ctermfg=red cterm=NONE
|
hi CtrlPBufName ctermbg=NONE ctermfg=darkgray cterm=NONE
|
||||||
hi CtrlPTagKind ctermbg=NONE ctermfg=red cterm=bold
|
hi CtrlPTagKind ctermbg=NONE ctermfg=white cterm=bold
|
||||||
hi CtrlPqfLineCol ctermbg=NONE ctermfg=red cterm=bold
|
hi CtrlPqfLineCol ctermbg=NONE ctermfg=red cterm=bold
|
||||||
hi CtrlPUndoT ctermbg=NONE ctermfg=darkgray cterm=NONE
|
hi CtrlPUndoT ctermbg=NONE ctermfg=darkgray cterm=NONE
|
||||||
hi CtrlPUndoBr ctermbg=NONE ctermfg=black cterm=NONE
|
hi CtrlPUndoBr ctermbg=NONE ctermfg=gray cterm=NONE
|
||||||
hi CtrlPUndoNr ctermbg=NONE ctermfg=gray cterm=NONE
|
hi CtrlPUndoNr ctermbg=NONE ctermfg=gray cterm=NONE
|
||||||
hi CtrlPUndoSv ctermbg=NONE ctermfg=red cterm=NONE
|
hi CtrlPUndoSv ctermbg=NONE ctermfg=red cterm=NONE
|
||||||
hi CtrlPUndoPo ctermbg=NONE ctermfg=white cterm=bold
|
hi CtrlPUndoPo ctermbg=NONE ctermfg=white cterm=bold
|
||||||
|
@ -622,8 +622,8 @@ endif
|
||||||
|
|
||||||
augroup cursorlinebg
|
augroup cursorlinebg
|
||||||
au!
|
au!
|
||||||
au InsertEnter * hi CursorLine ctermbg=232 ctermfg=NONE cterm=NONE guibg=#384046 guifg=NONE gui=NONE
|
au InsertEnter * hi CursorLine ctermbg=17 ctermfg=NONE cterm=NONE guibg=#384046 guifg=NONE
|
||||||
au InsertLeave * hi CursorLine ctermbg=232 ctermfg=NONE cterm=NONE guibg=#272829 guifg=NONE gui=NONE
|
au InsertLeave * hi CursorLine ctermbg=232 ctermfg=NONE cterm=NONE guibg=#1B1C1D guifg=NONE
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
set iskeyword+=-
|
|
@ -0,0 +1,2 @@
|
||||||
|
nnoremap <silent> <buffer> <F5> :call SaveAndExecute('ruby')<CR>
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
set iskeyword+=$
|
||||||
|
set foldmethod=syntax
|
|
@ -1,400 +0,0 @@
|
||||||
" vim: ft=vim:fdm=marker
|
|
||||||
" https://github.com/python-mode/python-mode/blob/develop/syntax/python.vim
|
|
||||||
|
|
||||||
" Enable pymode syntax for python files
|
|
||||||
" call pymode#default('g:pymode', 1)
|
|
||||||
" call pymode#default('g:pymode_syntax', g:pymode)
|
|
||||||
|
|
||||||
" DESC: Disable script loading
|
|
||||||
if !g:pymode || !g:pymode_syntax
|
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" OPTIONS: {{{
|
|
||||||
|
|
||||||
" Highlight all by default
|
|
||||||
"call pymode#default('g:pymode_syntax_all', 1)
|
|
||||||
|
|
||||||
"" Highlight 'print' as function
|
|
||||||
"call pymode#default("g:pymode_syntax_print_as_function", 0)
|
|
||||||
""
|
|
||||||
"" Highlight 'async/await' keywords
|
|
||||||
"call pymode#default("g:pymode_syntax_highlight_async_await", g:pymode_syntax_all)
|
|
||||||
|
|
||||||
"" Highlight '=' operator
|
|
||||||
"call pymode#default('g:pymode_syntax_highlight_equal_operator', g:pymode_syntax_all)
|
|
||||||
|
|
||||||
"" Highlight '*' operator
|
|
||||||
"call pymode#default('g:pymode_syntax_highlight_stars_operator', g:pymode_syntax_all)
|
|
||||||
|
|
||||||
"" Highlight 'self' keyword
|
|
||||||
"call pymode#default('g:pymode_syntax_highlight_self', g:pymode_syntax_all)
|
|
||||||
|
|
||||||
"" kighlight indent's errors
|
|
||||||
"call pymode#default('g:pymode_syntax_indent_errors', g:pymode_syntax_all)
|
|
||||||
|
|
||||||
"" Highlight space's errors
|
|
||||||
"call pymode#default('g:pymode_syntax_space_errors', g:pymode_syntax_all)
|
|
||||||
|
|
||||||
"" Highlight string formatting
|
|
||||||
"call pymode#default('g:pymode_syntax_string_formatting', g:pymode_syntax_all)
|
|
||||||
"call pymode#default('g:pymode_syntax_string_format', g:pymode_syntax_all)
|
|
||||||
"call pymode#default('g:pymode_syntax_string_templates', g:pymode_syntax_all)
|
|
||||||
"call pymode#default('g:pymode_syntax_doctests', g:pymode_syntax_all)
|
|
||||||
|
|
||||||
"" Support docstrings in syntax highlighting
|
|
||||||
"call pymode#default('g:pymode_syntax_docstrings', 1)
|
|
||||||
|
|
||||||
"" Highlight builtin objects (True, False, ...)
|
|
||||||
"call pymode#default('g:pymode_syntax_builtin_objs', g:pymode_syntax_all)
|
|
||||||
|
|
||||||
"" Highlight builtin types (str, list, ...)
|
|
||||||
"call pymode#default('g:pymode_syntax_builtin_types', g:pymode_syntax_all)
|
|
||||||
|
|
||||||
"" Highlight builtin types (div, eval, ...)
|
|
||||||
"call pymode#default('g:pymode_syntax_builtin_funcs', g:pymode_syntax_all)
|
|
||||||
|
|
||||||
"" Highlight exceptions (TypeError, ValueError, ...)
|
|
||||||
"call pymode#default('g:pymode_syntax_highlight_exceptions', g:pymode_syntax_all)
|
|
||||||
|
|
||||||
"" More slow synchronizing. Disable on the slow machine, but code in docstrings
|
|
||||||
"" could be broken.
|
|
||||||
"call pymode#default('g:pymode_syntax_slow_sync', 1)
|
|
||||||
|
|
||||||
" }}}
|
|
||||||
|
|
||||||
" For version 5.x: Clear all syntax items
|
|
||||||
if version < 600
|
|
||||||
syntax clear
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Keywords {{{
|
|
||||||
" ============
|
|
||||||
|
|
||||||
syn keyword pythonStatement break continue del
|
|
||||||
syn keyword pythonStatement exec return
|
|
||||||
syn keyword pythonStatement pass raise
|
|
||||||
syn keyword pythonStatement global nonlocal assert
|
|
||||||
syn keyword pythonStatement yield
|
|
||||||
syn keyword pythonLambdaExpr lambda
|
|
||||||
syn keyword pythonStatement with as
|
|
||||||
|
|
||||||
syn keyword pythonStatement def nextgroup=pythonFunction skipwhite
|
|
||||||
syn match pythonFunction "\%(\%(def\s\|@\)\s*\)\@<=\h\%(\w\|\.\)*" contained nextgroup=pythonVars
|
|
||||||
syn region pythonVars start="(" skip=+\(".*"\|'.*'\)+ end=")" contained contains=pythonParameters transparent keepend
|
|
||||||
syn match pythonParameters "[^,]*" contained contains=pythonParam skipwhite
|
|
||||||
syn match pythonParam "[^,]*" contained contains=pythonExtraOperator,pythonLambdaExpr,pythonBuiltinObj,pythonBuiltinType,pythonConstant,pythonString,pythonNumber,pythonBrackets,pythonSelf,pythonComment skipwhite
|
|
||||||
syn match pythonBrackets "{[(|)]}" contained skipwhite
|
|
||||||
|
|
||||||
syn keyword pythonStatement class nextgroup=pythonClass skipwhite
|
|
||||||
syn match pythonClass "\%(\%(class\s\)\s*\)\@<=\h\%(\w\|\.\)*" contained nextgroup=pythonClassVars
|
|
||||||
syn region pythonClassVars start="(" end=")" contained contains=pythonClassParameters transparent keepend
|
|
||||||
syn match pythonClassParameters "[^,\*]*" contained contains=pythonBuiltin,pythonBuiltinObj,pythonBuiltinType,pythonExtraOperatorpythonStatement,pythonBrackets,pythonString,pythonComment skipwhite
|
|
||||||
|
|
||||||
syn keyword pythonRepeat for while
|
|
||||||
syn keyword pythonConditional if elif else
|
|
||||||
syn keyword pythonInclude import from
|
|
||||||
syn keyword pythonException try except finally
|
|
||||||
syn keyword pythonOperator and in is not or
|
|
||||||
|
|
||||||
syn match pythonExtraOperator "\%([~!^&|/%+-]\|\%(class\s*\)\@<!<<\|<=>\|<=\|\%(<\|\<class\s\+\u\w*\s*\)\@<!<[^<]\@=\|===\|==\|=\~\|>>\|>=\|=\@<!>\|\.\.\.\|\.\.\|::\)"
|
|
||||||
syn match pythonExtraPseudoOperator "\%(-=\|/=\|\*\*=\|\*=\|&&=\|&=\|&&\|||=\||=\|||\|%=\|+=\|!\~\|!=\)"
|
|
||||||
|
|
||||||
if !g:pymode_syntax_print_as_function
|
|
||||||
syn keyword pythonStatement print
|
|
||||||
endif
|
|
||||||
|
|
||||||
if g:pymode_syntax_highlight_async_await
|
|
||||||
syn keyword pythonStatement async await
|
|
||||||
syn match pythonStatement "\<async\s\+def\>" nextgroup=pythonFunction skipwhite
|
|
||||||
syn match pythonStatement "\<async\s\+with\>" display
|
|
||||||
syn match pythonStatement "\<async\s\+for\>" nextgroup=pythonRepeat skipwhite
|
|
||||||
endif
|
|
||||||
|
|
||||||
if g:pymode_syntax_highlight_equal_operator
|
|
||||||
syn match pythonExtraOperator "\%(=\)"
|
|
||||||
endif
|
|
||||||
|
|
||||||
if g:pymode_syntax_highlight_stars_operator
|
|
||||||
syn match pythonExtraOperator "\%(\*\|\*\*\)"
|
|
||||||
endif
|
|
||||||
|
|
||||||
if g:pymode_syntax_highlight_self
|
|
||||||
syn keyword pythonSelf self cls
|
|
||||||
endif
|
|
||||||
|
|
||||||
" }}}
|
|
||||||
|
|
||||||
" Decorators {{{
|
|
||||||
" ==============
|
|
||||||
|
|
||||||
syn match pythonDecorator "@" display nextgroup=pythonDottedName skipwhite
|
|
||||||
syn match pythonDottedName "[a-zA-Z_][a-zA-Z0-9_]*\(\.[a-zA-Z_][a-zA-Z0-9_]*\)*" display contained
|
|
||||||
syn match pythonDot "\." display containedin=pythonDottedName
|
|
||||||
|
|
||||||
" }}}
|
|
||||||
|
|
||||||
" Comments {{{
|
|
||||||
" ============
|
|
||||||
|
|
||||||
syn match pythonComment "#.*$" display contains=pythonTodo,@Spell
|
|
||||||
syn match pythonRun "\%^#!.*$"
|
|
||||||
syn match pythonCoding "\%^.*\(\n.*\)\?#.*coding[:=]\s*[0-9A-Za-z-_.]\+.*$"
|
|
||||||
syn keyword pythonTodo TODO FIXME XXX contained
|
|
||||||
|
|
||||||
" }}}
|
|
||||||
|
|
||||||
" Errors {{{
|
|
||||||
" ==========
|
|
||||||
|
|
||||||
syn match pythonError "\<\d\+\D\+\>" display
|
|
||||||
syn match pythonError "[$?]" display
|
|
||||||
syn match pythonError "[&|]\{2,}" display
|
|
||||||
syn match pythonError "[=]\{3,}" display
|
|
||||||
|
|
||||||
" Indent errors (mix space and tabs)
|
|
||||||
if g:pymode_syntax_indent_errors
|
|
||||||
syn match pythonIndentError "^\s*\( \t\|\t \)\s*\S"me=e-1 display
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Trailing space errors
|
|
||||||
if g:pymode_syntax_space_errors
|
|
||||||
syn match pythonSpaceError "\s\+$" display
|
|
||||||
endif
|
|
||||||
|
|
||||||
" }}}
|
|
||||||
|
|
||||||
" Strings {{{
|
|
||||||
" ===========
|
|
||||||
|
|
||||||
syn region pythonString start=+[bB]\='+ skip=+\\\\\|\\'\|\\$+ excludenl end=+'+ end=+$+ keepend contains=pythonEscape,pythonEscapeError,@Spell
|
|
||||||
syn region pythonString start=+[bB]\="+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end=+$+ keepend contains=pythonEscape,pythonEscapeError,@Spell
|
|
||||||
syn region pythonString start=+[bB]\="""+ end=+"""+ keepend contains=pythonEscape,pythonEscapeError,pythonDocTest2,pythonSpaceError,@Spell
|
|
||||||
syn region pythonString start=+[bB]\='''+ end=+'''+ keepend contains=pythonEscape,pythonEscapeError,pythonDocTest,pythonSpaceError,@Spell
|
|
||||||
|
|
||||||
syn match pythonEscape +\\[abfnrtv'"\\]+ display contained
|
|
||||||
syn match pythonEscape "\\\o\o\=\o\=" display contained
|
|
||||||
syn match pythonEscapeError "\\\o\{,2}[89]" display contained
|
|
||||||
syn match pythonEscape "\\x\x\{2}" display contained
|
|
||||||
syn match pythonEscapeError "\\x\x\=\X" display contained
|
|
||||||
syn match pythonEscape "\\$"
|
|
||||||
|
|
||||||
" Unicode
|
|
||||||
syn region pythonUniString start=+[uU]'+ skip=+\\\\\|\\'\|\\$+ excludenl end=+'+ end=+$+ keepend contains=pythonEscape,pythonUniEscape,pythonEscapeError,pythonUniEscapeError,@Spell
|
|
||||||
syn region pythonUniString start=+[uU]"+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end=+$+ keepend contains=pythonEscape,pythonUniEscape,pythonEscapeError,pythonUniEscapeError,@Spell
|
|
||||||
syn region pythonUniString start=+[uU]"""+ end=+"""+ keepend contains=pythonEscape,pythonUniEscape,pythonEscapeError,pythonUniEscapeError,pythonDocTest2,pythonSpaceError,@Spell
|
|
||||||
syn region pythonUniString start=+[uU]'''+ end=+'''+ keepend contains=pythonEscape,pythonUniEscape,pythonEscapeError,pythonUniEscapeError,pythonDocTest,pythonSpaceError,@Spell
|
|
||||||
|
|
||||||
syn match pythonUniEscape "\\u\x\{4}" display contained
|
|
||||||
syn match pythonUniEscapeError "\\u\x\{,3}\X" display contained
|
|
||||||
syn match pythonUniEscape "\\U\x\{8}" display contained
|
|
||||||
syn match pythonUniEscapeError "\\U\x\{,7}\X" display contained
|
|
||||||
syn match pythonUniEscape "\\N{[A-Z ]\+}" display contained
|
|
||||||
syn match pythonUniEscapeError "\\N{[^A-Z ]\+}" display contained
|
|
||||||
|
|
||||||
" Raw strings
|
|
||||||
syn region pythonRawString start=+[rR]'+ skip=+\\\\\|\\'\|\\$+ excludenl end=+'+ end=+$+ keepend contains=pythonRawEscape,@Spell
|
|
||||||
syn region pythonRawString start=+[rR]"+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end=+$+ keepend contains=pythonRawEscape,@Spell
|
|
||||||
syn region pythonRawString start=+[rR]"""+ end=+"""+ keepend contains=pythonDocTest2,pythonSpaceError,@Spell
|
|
||||||
syn region pythonRawString start=+[rR]'''+ end=+'''+ keepend contains=pythonDocTest,pythonSpaceError,@Spell
|
|
||||||
|
|
||||||
syn match pythonRawEscape +\\['"]+ display transparent contained
|
|
||||||
|
|
||||||
" Unicode raw strings
|
|
||||||
syn region pythonUniRawString start=+[uU][rR]'+ skip=+\\\\\|\\'\|\\$+ excludenl end=+'+ end=+$+ keepend contains=pythonRawEscape,pythonUniRawEscape,pythonUniRawEscapeError,@Spell
|
|
||||||
syn region pythonUniRawString start=+[uU][rR]"+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end=+$+ keepend contains=pythonRawEscape,pythonUniRawEscape,pythonUniRawEscapeError,@Spell
|
|
||||||
syn region pythonUniRawString start=+[uU][rR]"""+ end=+"""+ keepend contains=pythonUniRawEscape,pythonUniRawEscapeError,pythonDocTest2,pythonSpaceError,@Spell
|
|
||||||
syn region pythonUniRawString start=+[uU][rR]'''+ end=+'''+ keepend contains=pythonUniRawEscape,pythonUniRawEscapeError,pythonDocTest,pythonSpaceError,@Spell
|
|
||||||
|
|
||||||
syn match pythonUniRawEscape "\([^\\]\(\\\\\)*\)\@<=\\u\x\{4}" display contained
|
|
||||||
syn match pythonUniRawEscapeError "\([^\\]\(\\\\\)*\)\@<=\\u\x\{,3}\X" display contained
|
|
||||||
|
|
||||||
" String formatting
|
|
||||||
if g:pymode_syntax_string_formatting
|
|
||||||
syn match pythonStrFormatting "%\(([^)]\+)\)\=[-#0 +]*\d*\(\.\d\+\)\=[hlL]\=[diouxXeEfFgGcrs%]" contained containedin=pythonString,pythonUniString,pythonRawString,pythonUniRawString
|
|
||||||
syn match pythonStrFormatting "%[-#0 +]*\(\*\|\d\+\)\=\(\.\(\*\|\d\+\)\)\=[hlL]\=[diouxXeEfFgGcrs%]" contained containedin=pythonString,pythonUniString,pythonRawString,pythonUniRawString
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Str.format syntax
|
|
||||||
if g:pymode_syntax_string_format
|
|
||||||
syn match pythonStrFormat "{{\|}}" contained containedin=pythonString,pythonUniString,pythonRawString,pythonUniRawString
|
|
||||||
syn match pythonStrFormat "{\([a-zA-Z0-9_]*\|\d\+\)\(\.[a-zA-Z_][a-zA-Z0-9_]*\|\[\(\d\+\|[^!:\}]\+\)\]\)*\(![rs]\)\=\(:\({\([a-zA-Z_][a-zA-Z0-9_]*\|\d\+\)}\|\([^}]\=[<>=^]\)\=[ +-]\=#\=0\=\d*\(\.\d\+\)\=[bcdeEfFgGnoxX%]\=\)\=\)\=}" contained containedin=pythonString,pythonUniString,pythonRawString,pythonUniRawString
|
|
||||||
endif
|
|
||||||
|
|
||||||
" String templates
|
|
||||||
if g:pymode_syntax_string_templates
|
|
||||||
syn match pythonStrTemplate "\$\$" contained containedin=pythonString,pythonUniString,pythonRawString,pythonUniRawString
|
|
||||||
syn match pythonStrTemplate "\${[a-zA-Z_][a-zA-Z0-9_]*}" contained containedin=pythonString,pythonUniString,pythonRawString,pythonUniRawString
|
|
||||||
syn match pythonStrTemplate "\$[a-zA-Z_][a-zA-Z0-9_]*" contained containedin=pythonString,pythonUniString,pythonRawString,pythonUniRawString
|
|
||||||
endif
|
|
||||||
|
|
||||||
" DocTests
|
|
||||||
if g:pymode_syntax_doctests
|
|
||||||
syn region pythonDocTest start="^\s*>>>" end=+'''+he=s-1 end="^\s*$" contained
|
|
||||||
syn region pythonDocTest2 start="^\s*>>>" end=+"""+he=s-1 end="^\s*$" contained
|
|
||||||
endif
|
|
||||||
|
|
||||||
" DocStrings
|
|
||||||
if g:pymode_syntax_docstrings
|
|
||||||
syn region pythonDocstring start=+^\s*[uU]\?[rR]\?"""+ end=+"""+ keepend excludenl contains=pythonEscape,@Spell,pythonDoctest,pythonDocTest2,pythonSpaceError
|
|
||||||
syn region pythonDocstring start=+^\s*[uU]\?[rR]\?'''+ end=+'''+ keepend excludenl contains=pythonEscape,@Spell,pythonDoctest,pythonDocTest2,pythonSpaceError
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
" }}}
|
|
||||||
|
|
||||||
" Numbers {{{
|
|
||||||
" ===========
|
|
||||||
|
|
||||||
syn match pythonHexError "\<0[xX][0-9a-fA-F_]*[g-zG-Z][0-9a-fA-F_]*[lL]\=\>" display
|
|
||||||
syn match pythonHexNumber "\<0[xX][0-9a-fA-F_]*[0-9a-fA-F][0-9a-fA-F_]*[lL]\=\>" display
|
|
||||||
syn match pythonOctNumber "\<0[oO][0-7_]*[0-7][0-7_]*[lL]\=\>" display
|
|
||||||
syn match pythonBinNumber "\<0[bB][01_]*[01][01_]*[lL]\=\>" display
|
|
||||||
syn match pythonNumber "\<[0-9][0-9_]*[lLjJ]\=\>" display
|
|
||||||
syn match pythonFloat "\.[0-9_]*[0-9][0-9_]*\([eE][+-]\=[0-9_]*[0-9][0-9_]*\)\=[jJ]\=\>" display
|
|
||||||
syn match pythonFloat "\<[0-9][0-9_]*[eE][+-]\=[0-9_]\+[jJ]\=\>" display
|
|
||||||
syn match pythonFloat "\<[0-9][0-9_]*\.[0-9_]*\([eE][+-]\=[0-9_]*[0-9][0-9_]*\)\=[jJ]\=" display
|
|
||||||
syn match pythonOctError "\<0[oO]\=[0-7_]*[8-9][0-9_]*[lL]\=\>" display
|
|
||||||
syn match pythonBinError "\<0[bB][01_]*[2-9][0-9_]*[lL]\=\>" display
|
|
||||||
|
|
||||||
" }}}
|
|
||||||
|
|
||||||
" Builtins {{{
|
|
||||||
" ============
|
|
||||||
|
|
||||||
" Builtin objects and types
|
|
||||||
if g:pymode_syntax_builtin_objs
|
|
||||||
syn keyword pythonBuiltinObj True False Ellipsis None NotImplemented
|
|
||||||
syn keyword pythonBuiltinObj __debug__ __doc__ __file__ __name__ __package__
|
|
||||||
endif
|
|
||||||
|
|
||||||
if g:pymode_syntax_builtin_types
|
|
||||||
syn keyword pythonBuiltinType type object
|
|
||||||
syn keyword pythonBuiltinType str basestring unicode buffer bytearray bytes chr unichr
|
|
||||||
syn keyword pythonBuiltinType dict int long bool float complex set frozenset list tuple
|
|
||||||
syn keyword pythonBuiltinType file super
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Builtin functions
|
|
||||||
if g:pymode_syntax_builtin_funcs
|
|
||||||
syn keyword pythonBuiltinFunc __import__ abs all any apply
|
|
||||||
syn keyword pythonBuiltinFunc bin callable classmethod cmp coerce compile
|
|
||||||
syn keyword pythonBuiltinFunc delattr dir divmod enumerate eval execfile filter
|
|
||||||
syn keyword pythonBuiltinFunc format getattr globals locals hasattr hash help hex id
|
|
||||||
syn keyword pythonBuiltinFunc input intern isinstance issubclass iter len map max min
|
|
||||||
syn keyword pythonBuiltinFunc next oct open ord pow property range xrange
|
|
||||||
syn keyword pythonBuiltinFunc raw_input reduce reload repr reversed round setattr
|
|
||||||
syn keyword pythonBuiltinFunc slice sorted staticmethod sum vars zip
|
|
||||||
|
|
||||||
if g:pymode_syntax_print_as_function
|
|
||||||
syn keyword pythonBuiltinFunc print
|
|
||||||
endif
|
|
||||||
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Builtin exceptions and warnings
|
|
||||||
if g:pymode_syntax_highlight_exceptions
|
|
||||||
syn keyword pythonExClass BaseException
|
|
||||||
syn keyword pythonExClass Exception StandardError ArithmeticError
|
|
||||||
syn keyword pythonExClass LookupError EnvironmentError
|
|
||||||
syn keyword pythonExClass AssertionError AttributeError BufferError EOFError
|
|
||||||
syn keyword pythonExClass FloatingPointError GeneratorExit IOError
|
|
||||||
syn keyword pythonExClass ImportError IndexError KeyError
|
|
||||||
syn keyword pythonExClass KeyboardInterrupt MemoryError NameError
|
|
||||||
syn keyword pythonExClass NotImplementedError OSError OverflowError
|
|
||||||
syn keyword pythonExClass ReferenceError RuntimeError StopIteration
|
|
||||||
syn keyword pythonExClass SyntaxError IndentationError TabError
|
|
||||||
syn keyword pythonExClass SystemError SystemExit TypeError
|
|
||||||
syn keyword pythonExClass UnboundLocalError UnicodeError
|
|
||||||
syn keyword pythonExClass UnicodeEncodeError UnicodeDecodeError
|
|
||||||
syn keyword pythonExClass UnicodeTranslateError ValueError VMSError
|
|
||||||
syn keyword pythonExClass WindowsError ZeroDivisionError
|
|
||||||
syn keyword pythonExClass Warning UserWarning BytesWarning DeprecationWarning
|
|
||||||
syn keyword pythonExClass PendingDepricationWarning SyntaxWarning
|
|
||||||
syn keyword pythonExClass RuntimeWarning FutureWarning
|
|
||||||
syn keyword pythonExClass ImportWarning UnicodeWarning
|
|
||||||
endif
|
|
||||||
|
|
||||||
" }}}
|
|
||||||
|
|
||||||
if g:pymode_syntax_slow_sync
|
|
||||||
syn sync minlines=2000"{{{
|
|
||||||
else
|
|
||||||
" This is fast but code inside triple quoted strings screws it up. It
|
|
||||||
" is impossible to fix because the only way to know if you are inside a
|
|
||||||
" triple quoted string is to start from the beginning of the file.
|
|
||||||
syn sync match pythonSync grouphere NONE "):$"
|
|
||||||
syn sync maxlines=200
|
|
||||||
endif
|
|
||||||
"}}}
|
|
||||||
|
|
||||||
" Highlight {{{
|
|
||||||
" =============
|
|
||||||
|
|
||||||
hi def link pythonStatement Statement
|
|
||||||
hi def link pythonLambdaExpr Statement
|
|
||||||
hi def link pythonInclude Include
|
|
||||||
hi def link pythonFunction Function
|
|
||||||
hi def link pythonClass Type
|
|
||||||
hi def link pythonParameters Normal
|
|
||||||
hi def link pythonParam Normal
|
|
||||||
hi def link pythonBrackets Normal
|
|
||||||
hi def link pythonClassParameters Normal
|
|
||||||
hi def link pythonSelf Identifier
|
|
||||||
|
|
||||||
hi def link pythonConditional Conditional
|
|
||||||
hi def link pythonRepeat Repeat
|
|
||||||
hi def link pythonException Exception
|
|
||||||
hi def link pythonOperator Operator
|
|
||||||
hi def link pythonExtraOperator Operator
|
|
||||||
hi def link pythonExtraPseudoOperator Operator
|
|
||||||
|
|
||||||
hi def link pythonDecorator Define
|
|
||||||
hi def link pythonDottedName Function
|
|
||||||
hi def link pythonDot Normal
|
|
||||||
|
|
||||||
hi def link pythonComment Comment
|
|
||||||
hi def link pythonCoding Special
|
|
||||||
hi def link pythonRun Special
|
|
||||||
hi def link pythonTodo Todo
|
|
||||||
|
|
||||||
hi def link pythonError Error
|
|
||||||
hi def link pythonIndentError Error
|
|
||||||
hi def link pythonSpaceError Error
|
|
||||||
|
|
||||||
hi def link pythonString String
|
|
||||||
hi def link pythonDocstring String
|
|
||||||
hi def link pythonUniString String
|
|
||||||
hi def link pythonRawString String
|
|
||||||
hi def link pythonUniRawString String
|
|
||||||
|
|
||||||
hi def link pythonEscape Special
|
|
||||||
hi def link pythonEscapeError Error
|
|
||||||
hi def link pythonUniEscape Special
|
|
||||||
hi def link pythonUniEscapeError Error
|
|
||||||
hi def link pythonUniRawEscape Special
|
|
||||||
hi def link pythonUniRawEscapeError Error
|
|
||||||
|
|
||||||
hi def link pythonStrFormatting Special
|
|
||||||
hi def link pythonStrFormat Special
|
|
||||||
hi def link pythonStrTemplate Special
|
|
||||||
|
|
||||||
hi def link pythonDocTest Special
|
|
||||||
hi def link pythonDocTest2 Special
|
|
||||||
|
|
||||||
hi def link pythonNumber Number
|
|
||||||
hi def link pythonHexNumber Number
|
|
||||||
hi def link pythonOctNumber Number
|
|
||||||
hi def link pythonBinNumber Number
|
|
||||||
hi def link pythonFloat Float
|
|
||||||
hi def link pythonOctError Error
|
|
||||||
hi def link pythonHexError Error
|
|
||||||
hi def link pythonBinError Error
|
|
||||||
|
|
||||||
hi def link pythonBuiltinType Type
|
|
||||||
hi def link pythonBuiltinObj Structure
|
|
||||||
hi def link pythonBuiltinFunc Function
|
|
||||||
|
|
||||||
hi def link pythonExClass Structure
|
|
||||||
|
|
||||||
" }}}
|
|
Loading…
Reference in New Issue