Skip to content

Commit

Permalink
Match trailing end of lines
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Jan 23, 2016
1 parent d072797 commit 1faf607
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions grammars/ts.cson
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ repository:
name: "keyword.other.ts"
"2":
name: "storage.type.ts"
end: "(?=[,);>]|var|type|function|class|interface)"
end: "(?=$|[,);>]|var|type|function|class|interface)"
patterns: [
{
include: "#type"
Expand Down Expand Up @@ -226,7 +226,7 @@ repository:
name: "variable.ts"
"2":
name: "keyword.operator.ts"
end: "(?=\\}|;|,)|(?<=\\})"
end: "(?=\\}|;|,|$)|(?<=\\})"
patterns: [
{
include: "#expression"
Expand All @@ -250,7 +250,7 @@ repository:
name: "entity.name.function.ts"
"7":
name: "keyword.operator.ts"
end: "(?=\\}|;|,)|(?<=\\})"
end: "(?=\\}|;|,|$)|(?<=\\})"
patterns: [
{
include: "#comment"
Expand Down
6 changes: 3 additions & 3 deletions grammars/tsx.cson
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ repository:
name: "keyword.other.tsx"
"2":
name: "storage.type.tsx"
end: "(?=[,);>]|var|type|function|class|interface)"
end: "(?=$|[,);>]|var|type|function|class|interface)"
patterns: [
{
include: "#type"
Expand Down Expand Up @@ -226,7 +226,7 @@ repository:
name: "variable.tsx"
"2":
name: "keyword.operator.tsx"
end: "(?=\\}|;|,)|(?<=\\})"
end: "(?=\\}|;|,|$)|(?<=\\})"
patterns: [
{
include: "#expression"
Expand All @@ -248,7 +248,7 @@ repository:
name: "entity.name.function.tsx"
"6":
name: "keyword.operator.tsx"
end: "(?=\\}|;|,)|(?<=\\})"
end: "(?=\\}|;|,|$)|(?<=\\})"
patterns: [
{
include: "#comment"
Expand Down

0 comments on commit 1faf607

Please sign in to comment.