Updated syntax highlight to pickup the getters/setters and the previous word

This commit is contained in:
neauoire 2021-04-22 20:47:23 -07:00
parent 8ca9e6d4de
commit 4af3405da3
1 changed files with 28 additions and 36 deletions

View File

@ -10,6 +10,34 @@ scope: source.usm
contexts:
main:
# get/set
- match: '\.(\S+)\sDEO2'
scope: constant.numeric
pop: true
- match: '\.(\S+)\sDEO'
scope: constant.numeric
pop: true
- match: '\.(\S+)\sPOK2'
scope: constant.numeric
pop: true
- match: '\.(\S+)\sPOK'
scope: constant.numeric
pop: true
- match: '\.(\S+)\sDEI2'
scope: entity.name.type.typedef
pop: true
- match: '\.(\S+)\sDEI'
scope: entity.name.type.typedef
pop: true
- match: '\.(\S+)\sPEK2'
scope: entity.name.type.typedef
pop: true
- match: '\.(\S+)\sPEK'
scope: entity.name.type.typedef
pop: true
# label
- match: '\@(\S+)\s?'
scope: string.control
@ -68,39 +96,3 @@ contexts:
- meta_scope: comment.line
- match: '\)'
pop: true
# templated
- match: '(\S+)\^\!\s?'
scope: entity.name.type.typedef
pop: true
- match: '(\S+)\~\!\s?'
scope: constant.numeric
pop: true
- match: '(\S+)\*\!\s?'
scope: entity.name.type.typedef
pop: true
- match: '(\S+)\=\!\s?'
scope: constant.numeric
pop: true
- match: '(\S+)\^\s?'
scope: entity.name.type.typedef
pop: true
- match: '(\S+)\~\s?'
scope: constant.numeric
pop: true
- match: '(\S+)\*\s?'
scope: entity.name.type.typedef
pop: true
- match: '(\S+)\=\s?'
scope: constant.numeric
pop: true
- match: '(\S+)\?\s?'
scope: storage.type
pop: true
- match: '(\S+)\!\s?'
scope: constant.numeric
pop: true