Skip to content

Commit 0ac6dc5

Browse files
author
Derp McDerpson
authored
Merge pull request #16 from tuxcrafting/master
Added vim syntax file
2 parents 8580b0d + c061eac commit 0ac6dc5

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

syntax/lgc.vim

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
" Vim syntax file for Logicode
2+
" https://github.com/LogicodeLang/Logicode
3+
" Author: TuxCrafting
4+
"
5+
" Installation instructions:
6+
" 1. Copy this file to ~/.vim/syntax/lgc.vim
7+
" 2. Create the file ~/.vim/ftdetect/lgc.vim
8+
" 3. Write 'au BufRead,BufNewFile *.lgc set filetype=lgc' in the ftdetect file
9+
" 4. ???
10+
" 5. Profit!
11+
12+
if exists("b:current_syntax")
13+
finish
14+
endif
15+
16+
syn keyword lgcTodo TODO FIXME XXX NOTE
17+
syn match lgcComment "#.*$" contains=lgcTodo
18+
syn keyword lgcKeyword circ cond out var
19+
syn match lgcNumber "[01]\+"
20+
21+
let b:current_syntax = "lgc"
22+
23+
hi def link lgcTodo Todo
24+
hi def link lgcComment Comment
25+
hi def link lgcKeyword Statement
26+
hi def link lgcNumber Constant

0 commit comments

Comments
 (0)