Fix typo in syntax highlighting for vim.
[vvhitespace] / syntax_highlighting / vvhitespace.vim
CommitLineData
6464ec02
AT
1" Vim syntax file
2" Language: VVhitespace
3" Based on: https://vim.fandom.com/wiki/Creating_your_own_syntax_files
4
5if exists("b:current_syntax")
6 finish
7endif
8
4dfd7c1f 9let b:current_syntax = "vvhitespace"
6464ec02
AT
10
11" Stack IMP
12syn match stackIMP '^[sS][sS]'
13syn match stackIMP '^[sS][nN][sStTnN]'
14
15" Arithmetic IMP
16syn match arithIMP '^[tT][sS][sStT][sStTnN]'
17
18" Heap IMP
19syn match heapIMP '^[tT][tT][sStT]'
20
21" Control Flow IMP
22syn match controlIMP '^[nN][nNsStT][nNsStT]'
23
24" IO IMP
25syn match ioIMP '^[tT][nN][sStT][sStT]'
26
27" Label Definition
28syn match labelDef 'V[sStT]\+N'
29
30" Comments
31syn match commentBlock '|.*$'
32syn match commentBlock '@.*$'
33
34" Define colors using existing Highlight Groups.
35" To see a list of other Highlight Groups, type `:highlight` in vim.
36hi def link stackIMP Type
37hi def link arithIMP ModeMsg
38hi def link heapIMP Special
39hi def link controlIMP Constant
40hi def link ioIMP Keyword
41hi def link labelDef Function
42hi def link commentBlock NonText