From 4af3405da3067526c78d91a91a69e3c95f8287df Mon Sep 17 00:00:00 2001 From: neauoire Date: Thu, 22 Apr 2021 20:47:23 -0700 Subject: [PATCH] Updated syntax highlight to pickup the getters/setters and the previous word --- etc/usm.sublime-syntax | 64 ++++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 36 deletions(-) diff --git a/etc/usm.sublime-syntax b/etc/usm.sublime-syntax index d1956ee..71638c0 100644 --- a/etc/usm.sublime-syntax +++ b/etc/usm.sublime-syntax @@ -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 \ No newline at end of file