smith.vim 793 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. " Vim syntax file
  2. " Language: SMITH
  3. " Maintainer: Rafal M. Sulejman <rms@poczta.onet.pl>
  4. " Last Change: 21.07.2000
  5. " quit when a syntax file was already loaded
  6. if exists("b:current_syntax")
  7. finish
  8. endif
  9. syn case ignore
  10. syn match smithComment ";.*$"
  11. syn match smithNumber "\<[+-]*[0-9]\d*\>"
  12. syn match smithRegister "R[\[]*[0-9]*[\]]*"
  13. syn match smithKeyword "COR\|MOV\|MUL\|NOT\|STOP\|SUB\|NOP\|BLA\|REP"
  14. syn region smithString start=+"+ skip=+\\\\\|\\"+ end=+"+
  15. syn case match
  16. " Define the default highlighting.
  17. " Only when an item doesn't have highlighting yet
  18. hi def link smithRegister Identifier
  19. hi def link smithKeyword Keyword
  20. hi def link smithComment Comment
  21. hi def link smithString String
  22. hi def link smithNumber Number
  23. let b:current_syntax = "smith"
  24. " vim: ts=2