Skip to content

Commit 1faf607

Browse files
committed
Match trailing end of lines
1 parent d072797 commit 1faf607

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

grammars/ts.cson

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ repository:
6969
name: "keyword.other.ts"
7070
"2":
7171
name: "storage.type.ts"
72-
end: "(?=[,);>]|var|type|function|class|interface)"
72+
end: "(?=$|[,);>]|var|type|function|class|interface)"
7373
patterns: [
7474
{
7575
include: "#type"
@@ -226,7 +226,7 @@ repository:
226226
name: "variable.ts"
227227
"2":
228228
name: "keyword.operator.ts"
229-
end: "(?=\\}|;|,)|(?<=\\})"
229+
end: "(?=\\}|;|,|$)|(?<=\\})"
230230
patterns: [
231231
{
232232
include: "#expression"
@@ -250,7 +250,7 @@ repository:
250250
name: "entity.name.function.ts"
251251
"7":
252252
name: "keyword.operator.ts"
253-
end: "(?=\\}|;|,)|(?<=\\})"
253+
end: "(?=\\}|;|,|$)|(?<=\\})"
254254
patterns: [
255255
{
256256
include: "#comment"

grammars/tsx.cson

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ repository:
6969
name: "keyword.other.tsx"
7070
"2":
7171
name: "storage.type.tsx"
72-
end: "(?=[,);>]|var|type|function|class|interface)"
72+
end: "(?=$|[,);>]|var|type|function|class|interface)"
7373
patterns: [
7474
{
7575
include: "#type"
@@ -226,7 +226,7 @@ repository:
226226
name: "variable.tsx"
227227
"2":
228228
name: "keyword.operator.tsx"
229-
end: "(?=\\}|;|,)|(?<=\\})"
229+
end: "(?=\\}|;|,|$)|(?<=\\})"
230230
patterns: [
231231
{
232232
include: "#expression"
@@ -248,7 +248,7 @@ repository:
248248
name: "entity.name.function.tsx"
249249
"6":
250250
name: "keyword.operator.tsx"
251-
end: "(?=\\}|;|,)|(?<=\\})"
251+
end: "(?=\\}|;|,|$)|(?<=\\})"
252252
patterns: [
253253
{
254254
include: "#comment"

0 commit comments

Comments
 (0)