Skip to content

Commit

Permalink
feat(syntax-highlight): highlight from-view / to-view, resolves #61 (#…
Browse files Browse the repository at this point in the history
…62)

* feat(syntax-highlight): highlight from-view / to-view, resolves #61
  • Loading branch information
Erik Lieben authored Dec 29, 2017
1 parent 5bcdfce commit cc724df
Show file tree
Hide file tree
Showing 2 changed files with 349 additions and 237 deletions.
14 changes: 7 additions & 7 deletions syntaxes/html.json
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
]
},
"tag-aurelia-attribute-with-databinding-attribute": {
"match": "(?<![\"'-])([a-zA-Z0-9:-]+)(?<!controller|bindable|view-model|show|if|naive-if|route-href)(\\.)(bind|one-way|two-way|one-time)(?![\"'-;])",
"match": "(?<![\"'-])([a-zA-Z0-9:-]+)(?<!controller|bindable|view-model|show|if|naive-if|route-href)(\\.)(bind|one-way|two-way|one-time|from-view|to-view)(?![\"'-;])",
"captures": {
"1": {
"name": "entity.other.attribute-name.html"
Expand Down Expand Up @@ -296,7 +296,7 @@
}
},
"tag-aurelia-view-model-attribute": {
"match": "(?<=[^\"-])(view-model)(?![-])(\\.)?((bind|one-way|two-way|one-time)|(ref))?",
"match": "(?<=[^\"-])(view-model)(?![-])(\\.)?((bind|one-way|two-way|one-time|from-view|to-view)|(ref))?",
"captures": {
"1": {
"name": "view-model.attribute.html.au"
Expand All @@ -313,7 +313,7 @@
}
},
"tag-aurelia-matcher-attribute": {
"match": "(?<=[^\"-])(matcher)(?![-])(\\.)(bind|one-way|two-way|one-time)",
"match": "(?<=[^\"-])(matcher)(?![-])(\\.)(bind|one-way|two-way|one-time|from-view|to-view)",
"captures": {
"1": {
"name": "matcher.attribute.html.au"
Expand All @@ -327,7 +327,7 @@
}
},
"tag-aurelia-model-attribute": {
"match": "(?=\\s)[^=-]((model)(\\.)?((bind|one-time|one-way|two-way)|(ref))?)",
"match": "(?=\\s)[^=-]((model)(\\.)?((bind|one-time|one-way|two-way|from-view|to-view)|(ref))?)",
"captures": {
"2": {
"name": "model.attribute.html.au"
Expand Down Expand Up @@ -407,7 +407,7 @@
}
},
"tag-aurelia-if-attribute": {
"match": "(?<=[^\"-])(if|naive-if)(?![-])(\\.)?(bind|one-way|two-way|one-time)?",
"match": "(?<=[^\"-])(if|naive-if)(?![-])(\\.)?(bind|one-way|two-way|one-time|from-view|to-view)?",
"captures": {
"1": {
"name": "if.attribute.html.au"
Expand All @@ -421,7 +421,7 @@
}
},
"tag-aurelia-route-href-attribute": {
"match": "(?<=[^\"-])(route-href)(?![-])(\\.)?(bind|one-way|two-way|one-time)?",
"match": "(?<=[^\"-])(route-href)(?![-])(\\.)?(bind|one-way|two-way|one-time|from-view|to-view)?",
"captures": {
"1": {
"name": "route-href.attribute.html.au"
Expand All @@ -435,7 +435,7 @@
}
},
"tag-aurelia-show-attribute": {
"match": "(?<=[^\"-])(show)(?![-])(\\.)?(bind|one-way|two-way|one-time)?",
"match": "(?<=[^\"-])(show)(?![-])(\\.)?(bind|one-way|two-way|one-time|from-view|to-view)?",
"captures": {
"1": {
"name": "show.attribute.html.au"
Expand Down
Loading

0 comments on commit cc724df

Please sign in to comment.