Added cindent as a fallback function
This commit is contained in:
parent
f7d6f3ae44
commit
489e3522d7
|
@ -0,0 +1,4 @@
|
|||
" ALL OF THE FOLLOWING IS T
|
||||
" Some preliminary settings
|
||||
setlocal nolisp " Make sure lisp indenting doesn't supersede us
|
||||
setlocal indentexpr=cindent(v:lnum)
|
|
@ -1,12 +1,12 @@
|
|||
syntax keyword hblangKeywords
|
||||
\ if
|
||||
\ loop
|
||||
\ fn
|
||||
\ return
|
||||
\ else
|
||||
\ break
|
||||
\ continue
|
||||
\ struct
|
||||
\ if
|
||||
\ loop
|
||||
\ fn
|
||||
\ return
|
||||
\ else
|
||||
\ break
|
||||
\ continue
|
||||
\ struct
|
||||
|
||||
syntax match hblangNumber "\v<\d+>"
|
||||
syntax match hblangNumber "\v<0x\x+([Pp]-?)?\x+>"
|
||||
|
@ -18,6 +18,9 @@ syntax keyword hblangBoolean true false
|
|||
syntax match hblangDirective /@\<\a\+\>/
|
||||
syntax match hblangFunction /[a-zA-Z_]\+\ze(/
|
||||
|
||||
syntax keyword hblangType int bool void
|
||||
syntax match hblangType /u\d\+/
|
||||
syntax match hblangType /i\d\+/
|
||||
|
||||
syntax region hblangString start=/"/ skip=/\\"/ end=/"/ oneline
|
||||
syntax region hblangComment start=/\/\// end=/\n/ oneline
|
||||
|
|
Loading…
Reference in a new issue