Compare commits
2 commits
28e0b041d3
...
5740cc54b5
Author | SHA1 | Date | |
---|---|---|---|
|
5740cc54b5 | ||
|
fcb4c73b28 |
|
@ -1,5 +1,5 @@
|
|||
" ALL OF THE FOLLOWING IS T
|
||||
" Some preliminary settings
|
||||
setlocal nolisp " Make sure lisp indenting doesn't supersede us
|
||||
setlocal cinoptions=>1,e0,n0,f0,{0,}0,^0,L-1,:0,=0,l0,b0,gs,hs,ps,ts,is,+s,c3,C0,/0,(2s,us,U0,w0,W0,m0,j0,J0,)20,*70,#0
|
||||
setlocal indentexpr=cindent(v:lnum)
|
||||
setlocal cinwords=
|
||||
setlocal smartindent
|
||||
|
|
|
@ -6,16 +6,33 @@ syntax keyword hblangKeywords
|
|||
\ else
|
||||
\ break
|
||||
\ continue
|
||||
\ struct
|
||||
\ idk
|
||||
\ Self
|
||||
\ match
|
||||
\ packed
|
||||
\ enum
|
||||
\ union
|
||||
\ die
|
||||
\ defer
|
||||
|
||||
syntax keyword hblangKeywords
|
||||
\ if
|
||||
\ loop
|
||||
\ fn
|
||||
\ return
|
||||
\ else
|
||||
\ break
|
||||
\ continue
|
||||
\ idk
|
||||
\ Self
|
||||
\ match
|
||||
\ packed
|
||||
\ die
|
||||
\ defer
|
||||
|
||||
syntax keyword hblangStructure
|
||||
\ struct
|
||||
\ enum
|
||||
\ union
|
||||
|
||||
syntax match hblangNumber "\v<\d+>"
|
||||
syntax match hblangNumber "\v<0x\x+([Pp]-?)?\x+>"
|
||||
syntax match hblangNumber "\v<0b[01]+>"
|
||||
|
@ -24,7 +41,7 @@ syntax match hblangNumber "\v<0o\o+>"
|
|||
syntax keyword hblangBoolean true false
|
||||
|
||||
syntax match hblangDirective /@\<\a\+\>/
|
||||
syntax match hblangFunction /[a-zA-Z_]\+\ze(/
|
||||
syntax match hblangFunction /[a-zA-Z_]\+\ze(.*)/
|
||||
|
||||
syntax keyword hblangType int bool void null
|
||||
syntax match hblangType /u\d\+/
|
||||
|
@ -34,13 +51,10 @@ syntax region hblangString start=/"/ skip=/\\"/ end=/"/ oneline
|
|||
syntax region hblangComment start=/\/\*/ end=/\*\//
|
||||
syntax region hblangComment start=/\/\// end=/\n/ oneline
|
||||
|
||||
|
||||
highlight default link hblangComment Comment
|
||||
|
||||
highlight default link hblangString String
|
||||
highlight default link hblangNumber Number
|
||||
highlight default link hblangBoolean Boolean
|
||||
|
||||
highlight default link hblangOperator Operator
|
||||
highlight default link hblangKeywords Keyword
|
||||
highlight default link hblangAttributes PreProc
|
||||
|
@ -48,3 +62,6 @@ highlight default link hblangStructure Structure
|
|||
highlight default link hblangType Type
|
||||
highlight default link hblangFunction Function
|
||||
highlight default link hblangDirective PreProc
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue