Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9c997ce

Browse files
committed
Support for this.constructor.html 0x00000001A#11
1 parent 877f19e commit 9c997ce

File tree

5 files changed

+50
-6
lines changed

5 files changed

+50
-6
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,8 @@ The format is based on [Keep a Changelog] (http://keepachangelog.com/en/1.0.0/)
3333

3434
### [1.6.0] - 2018-08-13
3535
### Added
36-
- SQL support. Beta
36+
- SQL support. Beta
37+
38+
### [1.7.0] - 2018-08-14
39+
### Fixed
40+
- Improve html function support

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ If this project help you reduce time to develop, you can give me a cup of coffee
6868
### [1.6.0] - 2018-08-13
6969
- Add SQL support. Beta
7070

71+
### [1.6.0] - 2018-08-13
72+
- Improve support for html function
73+
74+
### [1.7.0] - 2018-08-14
75+
- Improve html function support
76+
7177
-----------------------------------------------------------------------------------------------------------
7278

7379
**Enjoy!**

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "es6-string-html",
33
"displayName": "es6-string-html",
44
"description": "Highlight different languages in es6 multiline strings",
5-
"version": "1.6.0",
5+
"version": "1.7.0",
66
"publisher": "Tobermory",
77
"icon": "docs/logo.png",
88
"engines": {

syntaxes/es6-inline-html.json

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,28 @@
1717
}
1818
},
1919
"patterns": [
20+
{
21+
"begin": "(.?(html|template))(`)",
22+
"end": "(`)",
23+
"beginCaptures": {
24+
"1": {
25+
"name": "variable.parameter"
26+
}
27+
},
28+
"patterns": [
29+
{
30+
"include": "source.ts#template-substitution-element"
31+
},
32+
{
33+
"include": "text.html.basic"
34+
}
35+
]
36+
},
2037
{
2138
"begin": "(\\s?\\/?\\*?\\s?(html|template|inline-html|inline-template)\\s?\\*?\\/?\\s?)(`)",
2239
"beginCaptures": {
2340
"1": {
24-
"name": "punctuation.definition.comment.js"
41+
"name": "comment.block"
2542
}
2643
},
2744
"end": "(`)",
@@ -38,7 +55,7 @@
3855
"begin": "(\\/\\/\\s?(html|template|inline-html|inline-template)\\s?)",
3956
"beginCaptures": {
4057
"1": {
41-
"name": "punctuation.definition.comment.js"
58+
"name": "comment.line"
4259
}
4360
},
4461
"end": "(`)",

syntaxes/es6-inline-sql.json

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,28 @@
1717
}
1818
},
1919
"patterns": [
20+
{
21+
"begin": "(.?(sql))(`)",
22+
"end": "(`)",
23+
"beginCaptures": {
24+
"1": {
25+
"name": "variable.parameter"
26+
}
27+
},
28+
"patterns": [
29+
{
30+
"include": "source.ts#template-substitution-element"
31+
},
32+
{
33+
"include": "source.sql"
34+
}
35+
]
36+
},
2037
{
2138
"begin": "(\\s?\\/?\\*?\\s?(sql|inline-sql)\\s?\\*?\\/?\\s?)(`)",
2239
"beginCaptures": {
2340
"1": {
24-
"name": "punctuation.definition.comment.js"
41+
"name": "comment.block"
2542
}
2643
},
2744
"end": "(`)",
@@ -38,7 +55,7 @@
3855
"begin": "(\\/\\/\\s?(sql|inline-sql)\\s?)",
3956
"beginCaptures": {
4057
"1": {
41-
"name": "punctuation.definition.comment.js"
58+
"name": "comment.line"
4259
}
4360
},
4461
"end": "(`)",

0 commit comments

Comments
 (0)