qlow.vim 942 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. " Vim syntax file
  2. " Language: Qlow Programming Language
  3. " Maintainer: Nicolas Winkler
  4. " Latest Revision: 07 March 2018
  5. if exists("b:current_syntax")
  6. finish
  7. endif
  8. syntax match commenty "//.*"
  9. syntax region multicommenty start="/\*" end="\*/" contains=multicommenty
  10. syn keyword keywordy class struct do end if while return extern as new
  11. syn keyword typey Integer Boolean Abool
  12. syn keyword typey String Char
  13. syn keyword typey Float32 Float64
  14. syntax match identifiery "[a-zA-Z][a-zA-Z0-9]*"
  15. syntax match numbery "\d\+"
  16. syntax match stringy "\".\+\""
  17. syntax keyword operatory not or and xor
  18. syntax match operatory "\v\:\="
  19. hi def link identifiery None
  20. hi def link numbery Number
  21. hi def link stringy String
  22. hi def link keywordy Keyword
  23. hi def link operatory Operator
  24. hi def link typey Type
  25. hi def link commenty Comment
  26. hi def link multicommenty Comment
  27. " hi Operator guifg=#00FF00 guibg=NONE gui=NONE
  28. let b:current_syntax = "qlw"