Skip to content

Commit

Permalink
Added enum literal coloration to AQL expressions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ylussaud committed Feb 22, 2024
1 parent 55e7d37 commit 34850ac
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
40 changes: 40 additions & 0 deletions plugins/org.eclipse.acceleo.aql.tm/grammar/acceleo.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,9 @@
{
"include": "#expression-real"
},
{
"include": "#expression-enum"
},
{
"include": "#expression-type"
}
Expand Down Expand Up @@ -453,6 +456,9 @@
{
"include": "#expression-real"
},
{
"include": "#expression-enum"
},
{
"include": "#expression-type"
}
Expand Down Expand Up @@ -497,6 +503,9 @@
{
"include": "#expression-real"
},
{
"include": "#expression-enum"
},
{
"include": "#expression-type"
}
Expand Down Expand Up @@ -557,6 +566,9 @@
{
"include": "#expression-real"
},
{
"include": "#expression-enum"
},
{
"include": "#expression-type"
}
Expand All @@ -581,6 +593,9 @@
{
"include": "#expression-real"
},
{
"include": "#expression-enum"
},
{
"include": "#expression-type"
}
Expand Down Expand Up @@ -667,6 +682,9 @@
{
"include": "#expression-real"
},
{
"include": "#expression-enum"
},
{
"include": "#expression-type"
}
Expand All @@ -691,6 +709,9 @@
{
"include": "#expression-real"
},
{
"include": "#expression-enum"
},
{
"include": "#expression-type"
}
Expand Down Expand Up @@ -731,6 +752,9 @@
{
"include": "#expression-real"
},
{
"include": "#expression-enum"
},
{
"include": "#expression-type"
}
Expand Down Expand Up @@ -773,6 +797,9 @@
{
"include": "#expression-real"
},
{
"include": "#expression-enum"
},
{
"include": "#expression-type"
}
Expand Down Expand Up @@ -842,6 +869,9 @@
{
"include": "#expression-real"
},
{
"include": "#expression-enum"
},
{
"include": "#expression-type"
}
Expand Down Expand Up @@ -891,6 +921,9 @@
{
"include": "#expression-real"
},
{
"include": "#expression-enum"
},
{
"include": "#expression-type"
}
Expand Down Expand Up @@ -948,6 +981,9 @@
{
"include": "#expression-real"
},
{
"include": "#expression-enum"
},
{
"include": "#expression-type"
}
Expand All @@ -965,6 +1001,10 @@
"name": "meta.expression.aql.real.acceleo",
"match": "[0-9]+(\\.[0-9]+)*"
},
"expression-real": {
"name": "meta.expression.aql.enum.acceleo",
"match": "\\w+(::\\w+)(::\\w+)"
},
"expression-type": {
"name": "meta.expression.aql.type.acceleo",
"match": "((Sequence|OrderedSet)\\((String|Integer|Real|Boolean|(\\w+(::\\w+))|(\\{(\\w+(::\\w+))(,\\s*(\\w+(::\\w+)))*\\}))\\))|String|Integer|Real|Boolean|(\\w+(::\\w+))|(\\{(\\w+(::\\w+))(,\\s*(\\w+(::\\w+)))*\\})"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
.meta.expression.aql.keyword { color: #7F0055; }
.meta.expression.aql.string { color: #2A00FF; }
.meta.expression.aql.real { color: #2A00FF; }
.meta.expression.aql.enum { color: #2A00FF; }
.meta.expression.aql.type { font-style: italic; color: #6b6b6b; }
.meta.documentation.tag.value { font-style: italic; color: #3F7F5F; }

Expand Down

0 comments on commit 34850ac

Please sign in to comment.