Skip to content

Commit

Permalink
added experimental Vue.js support
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-simon committed Sep 10, 2018
1 parent d91afbf commit b940cea
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
7 changes: 6 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
CHANGELOG Highlight


highlight 3.45

xx.09.2018

-added RemoveKeyword function for syntax definitions
-added support for ISO and R10 variants of Modula2
-added support for ISO and R10 variants of Modula2 (thanks to Benjamin Kowarsch)
-fixed R identifiers (https://gitlab.com/saalen/highlight/merge_requests/77)

---
Expand Down
2 changes: 1 addition & 1 deletion langDefs/html.lang
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Keywords={
Group=0,
},
{ Id=2,
Regex=[[([-\w]+)="]],
Regex=[[([-\w\.\-\:]+)="]],
},


Expand Down
4 changes: 4 additions & 0 deletions langDefs/js.lang
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ Keywords={
Regex=[[(\w+)(\s*[:=]\s*function)?\s*\(]],
Group=1
},
{ Id=4,
Regex=[[(\w+)\s*:]],
Group=1
},
}

Strings={
Expand Down
19 changes: 19 additions & 0 deletions langDefs/vue.lang
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

Description="vue.js (beta)"

Keywords={
{ Id=1,
Regex=[[<[!?]?(?!\-\-)\/?[\w\:\-]+>?|[/?]?>]],
Group=0,
},

}


NestedSections = {

{ Lang="css", Delimiter= { [[<style>]], [[<\/style>]] } },
{ Lang="js", Delimiter= { [[<script>]], [[<\/script>]] } },
{ Lang="html", Delimiter= { [[ <template>]], [[<\/template>]] } },
}

0 comments on commit b940cea

Please sign in to comment.