Skip to content

Commit

Permalink
Improved type detectio in text mate syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
ylussaud committed Feb 20, 2024
1 parent f53af09 commit d27e72d
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,11 @@
},
"query-parameter-type":{
"name": "meta.parameter.type",
"match": "(?<=:)(?:\\s*)(\\w+(::\\w+)*)(\\(\\w+)*(\\))*(?=((\\s*,)|(\\s*\\)\\s*:)))"
"match": "(?<=:)(?:\\s*)((Sequence|OrderedSet)\\((String|Integer|Real|Boolean|(\\w+(::\\w+))|(\\{(\\w+(::\\w+))(,\\s*(\\w+(::\\w+)))*\\}))\\))|String|Integer|Real|Boolean|(\\w+(::\\w+))|(\\{(\\w+(::\\w+))(,\\s*(\\w+(::\\w+)))*\\})(?=((\\s*,)|(\\s*\\)\\s*:)))"
},
"query-return-type": {
"name": "meta.query.type.acceleo",
"match": "(?<=:)(?:\\s*)(\\w+)(?=\\s*=\\s*)"
"match": "(?<=:)(?:\\s*)((Sequence|OrderedSet)\\((String|Integer|Real|Boolean|(\\w+(::\\w+))|(\\{(\\w+(::\\w+))(,\\s*(\\w+(::\\w+)))*\\}))\\))|String|Integer|Real|Boolean|(\\w+(::\\w+))|(\\{(\\w+(::\\w+))(,\\s*(\\w+(::\\w+)))*\\})(?=(\\s*=\\s*:))"
},
"query-body" : {
"name": "meta.expression.aql",
Expand Down Expand Up @@ -402,7 +402,7 @@
},
"template-parameter-type":{
"name": "meta.parameter.type",
"match": "(?<=:)(?:\\s*)(\\w+(::\\w+)*)(\\(\\w+)*(\\))*(?=((\\s*,)|(\\s*\\)\\s*(\\?|\\bpost\\b|\\]))))"
"match": "(?<=:)(?:\\s*)((Sequence|OrderedSet)\\((String|Integer|Real|Boolean|(\\w+(::\\w+))|(\\{(\\w+(::\\w+))(,\\s*(\\w+(::\\w+)))*\\}))\\))|String|Integer|Real|Boolean|(\\w+(::\\w+))|(\\{(\\w+(::\\w+))(,\\s*(\\w+(::\\w+)))*\\})(?=((\\s*,)|(\\s*\\)\\s*(\\?|\\bpost\\b|\\]))))"
},
"template-pre-condition": {
"name": "meta.template.header.precondition.acceleo",
Expand Down Expand Up @@ -572,7 +572,7 @@
},
"statement-for-variable-type": {
"name": "meta.parameter.type.acceleo",
"match": "(?<=:)(?:\\s*)(\\w+(::\\w+)*)(\\(\\w+)*(\\))*(?=\\s*\\|)"
"match": "(?<=:)(?:\\s*)((Sequence|OrderedSet)\\((String|Integer|Real|Boolean|(\\w+(::\\w+))|(\\{(\\w+(::\\w+))(,\\s*(\\w+(::\\w+)))*\\}))\\))|String|Integer|Real|Boolean|(\\w+(::\\w+))|(\\{(\\w+(::\\w+))(,\\s*(\\w+(::\\w+)))*\\})(?=(\\s*|\\s*:))"
},
"statement-for-assignment": {
"name": "keyword.other.statement.for.acceleo",
Expand Down Expand Up @@ -687,7 +687,7 @@
},
"statement-let-variable-type": {
"name": "meta.parameter.type.acceleo",
"match": "(?<=:)(?:\\s*)(\\w+(::\\w+)*)(\\(\\w+)*(\\))*(?=\\s*\\=)"
"match": "(?<=:)(?:\\s*)((Sequence|OrderedSet)\\((String|Integer|Real|Boolean|(\\w+(::\\w+))|(\\{(\\w+(::\\w+))(,\\s*(\\w+(::\\w+)))*\\}))\\))|String|Integer|Real|Boolean|(\\w+(::\\w+))|(\\{(\\w+(::\\w+))(,\\s*(\\w+(::\\w+)))*\\})(?=\\s*\\=)"
},
"statement-let-assignment": {
"name": "keyword.other.statement.let.acceleo",
Expand Down

0 comments on commit d27e72d

Please sign in to comment.