Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit e5180ac

Browse files
committed
Use begin/end patterns for // comments
This allows injections grammars to match in between such as the language-todo package. Closesatom/language-todo#31
1 parent 0c64b93 commit e5180ac

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎grammars/go.cson‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@
1818
}
1919
{
2020
'comment':'Line comments'
21-
'match':'(//).*$\\n?'
22-
'captures':
23-
'1':
21+
'begin':'//'
22+
'end':'$'
23+
'beginCaptures':
24+
'0':
2425
'name':'punctuation.definition.comment.go'
2526
'name':'comment.line.double-slash.go'
2627
}

0 commit comments

Comments
 (0)