Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions syntax/lgc.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
" Vim syntax file for Logicode
" https://github.com/LogicodeLang/Logicode
" Author: TuxCrafting
"
" Installation instructions:
" 1. Copy this file to ~/.vim/syntax/lgc.vim
" 2. Create the file ~/.vim/ftdetect/lgc.vim
" 3. Write 'au BufRead,BufNewFile *.lgc set filetype=lgc' in the ftdetect file
" 4. ???
" 5. Profit!

if exists("b:current_syntax")
finish
endif

syn keyword lgcTodo TODO FIXME XXX NOTE
syn match lgcComment "#.*$" contains=lgcTodo
syn keyword lgcKeyword circ cond out var
syn match lgcNumber "[01]\+"

let b:current_syntax = "lgc"

hi def link lgcTodo Todo
hi def link lgcComment Comment
hi def link lgcKeyword Statement
hi def link lgcNumber Constant