logic: implemented using regex capture ranges for syntax highlighting rules

* only first capture will be highlighted (-> only use one capture range per regex
* non-capturing braces can be used with start: "(?:" and end: ")"
This commit is contained in:
mlangkabel
2019-02-04 16:07:20 +01:00
parent 92c8c282f5
commit 82a3c06a9d
4 changed files with 17 additions and 9 deletions
@@ -17,7 +17,7 @@
},
{
"type" : "quotation",
"patterns" : [ "\"([^\"]|\\\\.)+\"", "\"\"[^\"]", "[^\"]\"\"$", "\'([^\']|\\\\.)+\'", "\'\'[^\']", "[^\']\'\'$" ],
"patterns" : [ "(?:[^\"]|^)(\"(?:[^\"]|\\\\.)*\")(?:[^\"]|$)", "(?:[^\']|^)(\'(?:[^\']|\\\\.)*\')(?:[^\']|$)" ],
"priority" : true
},
{