Advertisement
Guest User

use.vim

a guest
Nov 24th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.50 KB | None | 0 0
  1. " Vim syntax file
  2. " Language: USE
  3.  
  4. if(exists("b:current_syntax"))
  5.     finish
  6. endif
  7.  
  8. syn keyword basicLanguageKeywords abstract aggregation association associationclass attributes begin between class composition constraints context derived do else end endif enum for if in init inv let model operations ordered post pre psm qualifier redefines result role statemachines states subsets then transitions
  9.  
  10. syn match variableName '\s+'
  11.  
  12. syn keyword dataTypeKeywords Bag Boolean Collection Integer OrderedSet Real Sequence Set String TupleType nextgroup=variableName
  13.  
  14. syn keyword builtinFunctions Tuple allInstances and any append asBag asOrderedSet asSequence asSet at characters closure collecNested collect concat count div equalsIgnoreCase excludes excludesAll excluding exists false first flatten floor forAll forall implies includes includesAll including indexOf insertAt intersection isEmpty isUnique iterate last max min mod not notEmpty oclAsType oclIsInState oclIsKindOf oclIsNew oclIsTypeOf one or prepend product reject reverse round select selectByKind selectByType self size sortedBy subOrderedSet subSequence substring sum symmetricDifference toBoolean toInteger toLowerCase toReal toString toUpperCase true union xor
  15.  
  16. syn keyword operators := ReadInteger ReadLine Write WriteLine between create declare delete destroy from insert into new
  17.  
  18. syn keyword comment --
  19.  
  20. let b:current_syntax = "use"
  21.  
  22. hi def link comment Comment
  23. hi def link dataTypeKeywords Type
  24. hi def link basicLanguageKeywords Statement
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement