chroma/lexers/testdata/vim.expected
2025-03-22 20:46:00 +13:00

384 lines
14 KiB
Text

[
{"type":"Keyword","value":"execute"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"pathogen"},
{"type":"Text","value":"#"},
{"type":"NameOther","value":"infect"},
{"type":"Punctuation","value":"()"},
{"type":"Text","value":"\n\n"},
{"type":"Keyword","value":"syntax"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"on"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"colorscheme"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"swapoff"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"\n\" Turn off status line."},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"laststatus"},
{"type":"Punctuation","value":"="},
{"type":"LiteralNumber","value":"0"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"\n\" Turn off annoying beeps"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"vb"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"noeb"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"vb"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"t_vb"},
{"type":"Punctuation","value":"="},
{"type":"Text","value":"\n\n"},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"mouse"},
{"type":"Punctuation","value":"="},
{"type":"NameOther","value":"r"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"visualbell"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"\n\" Force latin1 terminal encoding?"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"fileencoding"},
{"type":"Punctuation","value":"="},
{"type":"NameOther","value":"utf"},
{"type":"LiteralNumber","value":"-8"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"encoding"},
{"type":"Punctuation","value":"="},
{"type":"NameOther","value":"utf"},
{"type":"LiteralNumber","value":"-8"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"termencoding"},
{"type":"Punctuation","value":"="},
{"type":"NameOther","value":"utf"},
{"type":"LiteralNumber","value":"-8"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"\n\" Allows ~\u003cmotion\u003e"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"tildeop"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"\n\" Stupid backspace"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"backspace"},
{"type":"Punctuation","value":"="},
{"type":"NameOther","value":"eol"},
{"type":"Punctuation","value":","},
{"type":"NameOther","value":"indent"},
{"type":"Punctuation","value":","},
{"type":"NameOther","value":"start"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"\n\" 99% of the time, wrap is shit"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"nowrap"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"\n\" Map U to 'redo', which I like better than U being 'undo changes to this line'"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"map"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"U"},
{"type":"Text","value":" "},
{"type":"Punctuation","value":"\u003c"},
{"type":"NameOther","value":"C"},
{"type":"Punctuation","value":"-"},
{"type":"NameOther","value":"R"},
{"type":"Punctuation","value":"\u003e"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"\n\" Indentation defaults"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"ts"},
{"type":"Punctuation","value":"="},
{"type":"LiteralNumber","value":"2"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"sts"},
{"type":"Punctuation","value":"="},
{"type":"LiteralNumber","value":"2"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"sw"},
{"type":"Punctuation","value":"="},
{"type":"LiteralNumber","value":"2"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"et"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"\n\" Abbreviate status messages"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"shortmess"},
{"type":"Punctuation","value":"="},
{"type":"NameOther","value":"aTI"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"\n\" No 'Press ENTER...' message when using man"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"map"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"K"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"K"},
{"type":"Punctuation","value":"\u003c"},
{"type":"NameOther","value":"CR"},
{"type":"Punctuation","value":"\u003e"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"\n\" Filetypes that need real tabs"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"autocmd"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"FileType"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"make"},
{"type":"Text","value":" :"},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"ts"},
{"type":"Punctuation","value":"="},
{"type":"LiteralNumber","value":"4"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"noet"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"nolist"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"\n\" Set some formatoptions"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"formatoptions"},
{"type":"Punctuation","value":"="},
{"type":"NameOther","value":"tcrqn"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"\n\" Incremental search is good"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"incsearch"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"hlsearch"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"hi"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"MatchParen"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"cterm"},
{"type":"Punctuation","value":"="},
{"type":"NameBuiltin","value":"NONE"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"ctermfg"},
{"type":"Punctuation","value":"="},
{"type":"NameOther","value":"LightGreen"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"ctermbg"},
{"type":"Punctuation","value":"="},
{"type":"NameBuiltin","value":"NONE"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"\n\" Disable highlighted search on redraw"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"map"},
{"type":"Text","value":" "},
{"type":"Punctuation","value":"\u003c"},
{"type":"NameOther","value":"silent"},
{"type":"Punctuation","value":"\u003e"},
{"type":"Text","value":" "},
{"type":"Punctuation","value":"\u003c"},
{"type":"NameOther","value":"C"},
{"type":"Punctuation","value":"-"},
{"type":"NameOther","value":"l"},
{"type":"Punctuation","value":"\u003e"},
{"type":"Text","value":" :"},
{"type":"NameOther","value":"nohlsearch"},
{"type":"Punctuation","value":"\u003c"},
{"type":"NameOther","value":"CR"},
{"type":"Punctuation","value":"\u003e"},
{"type":"Text","value":":"},
{"type":"NameOther","value":"redraw"},
{"type":"Punctuation","value":"!\u003c"},
{"type":"NameOther","value":"CR"},
{"type":"Punctuation","value":"\u003e"},
{"type":"Text","value":"\n\n"},
{"type":"Keyword","value":"autocmd"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"Syntax"},
{"type":"Text","value":" * "},
{"type":"Keyword","value":"syntax"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"sync"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"fromstart"},
{"type":"Text","value":"\n\n"},
{"type":"Keyword","value":"filetype"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"plugin"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"on"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"filetype"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"indent"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"on"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"\n\" Always show cursor position"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"ruler"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"\n\" Fucking visual-select copying to clipboard! WTF!"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"clipboard"},
{"type":"Punctuation","value":"="},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"\n\" C-d when file-completing"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"wildmenu"},
{"type":"Text","value":"\n\n"},
{"type":"Keyword","value":"highlight"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"SpellBad"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"cterm"},
{"type":"Punctuation","value":"="},
{"type":"NameBuiltin","value":"NONE"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"ctermfg"},
{"type":"Punctuation","value":"="},
{"type":"NameOther","value":"darkred"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"ctermbg"},
{"type":"Punctuation","value":"="},
{"type":"NameOther","value":"none"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"\n\" Show trailing whitepace and spaces before a tab:"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"highlight"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"ExtraWhitespace"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"cterm"},
{"type":"Punctuation","value":"="},
{"type":"NameBuiltin","value":"NONE"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"ctermbg"},
{"type":"Punctuation","value":"="},
{"type":"NameOther","value":"red"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"guibg"},
{"type":"Punctuation","value":"="},
{"type":"NameOther","value":"red"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"autocmd"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"Syntax"},
{"type":"Text","value":" * "},
{"type":"NameOther","value":"syn"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"match"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"ExtraWhitespace"},
{"type":"Text","value":" "},
{"type":"LiteralStringRegex","value":"/\\s\\+$\\| \\+\\ze\\t/"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"\n\" Round shifting to nearest shiftwidth"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"shiftround"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"\n\" Insert blanks according to shiftwidth"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"smarttab"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"\n\" Disable toolbar"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"go"},
{"type":"Punctuation","value":"-="},
{"type":"NameOther","value":"T"},
{"type":"Text","value":"\n\n"},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"wildignore"},
{"type":"Punctuation","value":"="},
{"type":"Text","value":"*."},
{"type":"NameOther","value":"o"},
{"type":"Punctuation","value":","},
{"type":"Text","value":"*."},
{"type":"NameOther","value":"a"},
{"type":"Punctuation","value":","},
{"type":"Text","value":"*."},
{"type":"NameOther","value":"so"},
{"type":"Punctuation","value":","},
{"type":"Text","value":"*."},
{"type":"NameOther","value":"pyc"},
{"type":"Punctuation","value":","},
{"type":"Text","value":"*"},
{"type":"Punctuation","value":"~,"},
{"type":"Text","value":"*."},
{"type":"NameOther","value":"class"},
{"type":"Punctuation","value":","},
{"type":"NameOther","value":"build"},
{"type":"LiteralStringRegex","value":"/*,build-*,tags,cscope*,third_party/"},
{"type":"Text","value":"*"},
{"type":"Punctuation","value":","},
{"type":"NameOther","value":"java"},
{"type":"LiteralStringRegex","value":"/*,users/"},
{"type":"Text","value":"*"},
{"type":"Punctuation","value":","},
{"type":"NameOther","value":"data"},
{"type":"LiteralStringRegex","value":"/*,3rdparty/"},
{"type":"Text","value":"*"},
{"type":"Punctuation","value":","},
{"type":"Text","value":"*."},
{"type":"NameOther","value":"jar"},
{"type":"Punctuation","value":","},
{"type":"NameOther","value":"target"},
{"type":"LiteralStringRegex","value":"/*,dist/"},
{"type":"Text","value":"*\n\n"},
{"type":"Keyword","value":"autocmd"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"BufRead"},
{"type":"Punctuation","value":","},
{"type":"NameOther","value":"BufNewFile"},
{"type":"Text","value":" *."},
{"type":"NameOther","value":"bk"},
{"type":"Text","value":" "},
{"type":"Keyword","value":"set"},
{"type":"Text","value":" "},
{"type":"Keyword","value":"filetype"},
{"type":"Punctuation","value":"="},
{"type":"NameOther","value":"python"},
{"type":"Text","value":"\n"}
]