-
Notifications
You must be signed in to change notification settings - Fork 1
/
Simula-DEMOS.YAML-tmLanguage
31 lines (30 loc) · 1.55 KB
/
Simula-DEMOS.YAML-tmLanguage
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# [PackageDev] target_format: plist, ext: tmLanguage
---
name: Simula DEMOS
scopeName: source.simulademos
fileTypes: [sim]
uuid: 00e33390-a82e-4e24-bdb0-290d21180d29
patterns:
- name: comment.line.character.simulademos
begin: (?i:\!|\bcomment)
end: ;
- name: string.quoted.single.simulademos
match: \'.+?\'
- name: string.quoted.double.simulademos
match: \".+?\"
- name: keyword.control.simulademos
match: (?i)\b(after|and|before|begin|class|delay|do|else|end|eq|eqv|external|for|ge|go|goto|gt|hidden|if|imp|in|inner|inspect|is|le|lt|name|ne|new|none|not|notext|or|otherwise|prior|procedure|protected|qua|reactive|ref|step|switch|then|this|to|until|value|virtual|when|while)\b
- name: storage.type.simulademos
match: (?i)\b(array|boolean|character|integer|long|real|short|text)\b
- name: constant.numeric.simulademos
match: \b[0-9]+\.?\b
- name: constant.language.boolean.simulademos
match: (?i)\b(true|false)\b
- name: keyword.operator.simulademos
match: (\@|\$|\?|\-|\+|\*|\/|\!|\~|\%|\^|\&|\||:=|:-|<=|>=|<|>)
- name: support.function.simulademos
match: (?i)\b(outtext|outreal|outint|outfix|outimage|edit)\b
- name: support.class.simulademos
match: (?i)\b(bdist|bin|constant|count|dist|draw|empirical|entity|erlang|negexp|normal|poisson|queue|randint|rdist|res|tally|uniform|waitq|condq)\b
- name: support.function.simulademos
match: (?i)\b(acquire|avail|cancel|coopt|current|demos|extime|find|first|give|histogram|hold|idle|into|last|length|nextev|notrace|now|out|release|repeat|report|reset|sample|schedule|signal|take|time|trace|update|wait|waituntil)\b