Improve orion editor [message #1787171] |
Mon, 21 May 2018 09:20 |
Leonid Gorshkov Messages: 3 Registered: May 2018 |
Junior Member |
|
|
I converted https github.com/whatwedo/vscode-twig/blob/master/syntaxes/twig.tmLanguage via http json2plist.sinaapp.com and try to use it in orion.
1) ++ does not work - it is ok because it is not supported by browser, just replace it by +
2) (?x) does not work - ok, it is not supported by browser
3) (?m) and other flags apart from (?i) is not supported by orion - it can be suported
4) (?<=) , (?=) I replaced it by simple groups and increment capture indexes - not ok, they are supported by browser, but are not supported by orion
5) nested pattterts are not supported. For exemple
"twig-operators": {
"patterns": [
{
"captures": {"1": {"name": "keyword.operator.arithmetic.twig"}},
"match": "(?<=\\s)(\\+|-|\/\/?|%|\\*\\*?)(?=\\s)"
},
{
"captures": {"1": {"name": "keyword.operator.assignment.twig"}},
"match": "(?<=\\s)(=|~)(?=\\s)"
},
|
|
|
Powered by
FUDForum. Page generated in 0.03342 seconds