Skip to content

Commit

Permalink
Add support for vim's built-in spell checker (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
mscharley authored Nov 8, 2024
1 parent 75c056b commit 7a70891
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion syntax/kitty.vim
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
syn region kittyKeybind start=' ' end=' ' contains=kittyMod,kittyKey,kittyKeyComb contained nextgroup=kittyActionKW
syn region kittyString start=+"+ skip=+\\\\\|\\"+ end=+"+ oneline
syn region kittyString start=+'+ skip=+\\\\\|\\'+ end=+'+ oneline
syn spell notoplevel

" the order here matters
syn match kittySt '.*$' contains=kittyNumber,kittyColor
syn match kittyColor '#\x\{3,8}' contained
syn match kittyNumber '\s[+-]\?\d\+\.\?\d*\(%\|px\|pt\|em\)\?'ms=s+1 contained contains=kittyUnit
syn match kittyUnit '\(px\|pt\|em\)' contained
syn match kittyKW '^\s*\S*' contains=kittyKeyword,kittyInvalidKeyword nextgroup=kittySt
syn match kittyComment /^\s*#.*$/ contains=kittyTodo
syn match kittyComment /^\s*#.*$/ contains=kittyTodo,@Spell
syn match kittyInclude '^\s*\(env\|glob\)\?include' display
syn match kittyMap '^\s*\(mouse_\)\?map' nextgroup=kittyKeybind
syn match kittyContinue '^\(\s\+\)\?\\'
Expand Down

0 comments on commit 7a70891

Please sign in to comment.