Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Orion (Archived) » Improve orion editor
Improve orion editor [message #1787171] Mon, 21 May 2018 09:20
Leonid Gorshkov is currently offline Leonid GorshkovFriend
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)"
},
Previous Topic:_ignoreCaseRegex: /^\(\?i\)\s*/,
Next Topic:lookahead and lookbehind are not supported
Goto Forum:
  


Current Time: Thu Dec 12 11:12:37 GMT 2024

Powered by FUDForum. Page generated in 0.03342 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top