Skip to content

Commit

Permalink
Tag `TOP´ in grammars differently for docs.perl6.org
Browse files Browse the repository at this point in the history
  • Loading branch information
samcv committed Dec 28, 2016
1 parent 4c3e788 commit e6c8c77
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions grammars/perl6fe.cson
Expand Up @@ -689,14 +689,16 @@
{
'begin': '(?<![\\.:])(regex|rule|token)(?!\\s*=>|\\S)'
'beginCaptures':
'1':
'name': 'storage.type.declare.regexp.named.perl6fe'
'1': 'name': 'storage.type.declare.regexp.named.perl6fe'
'end': '(?<!\\\\)\\}'
'endCaptures':
'0':
'name': 'punctuation.definition.regexp.named.perl6fe'
'0': 'name': 'punctuation.definition.regexp.named.perl6fe'
'name': 'meta.regexp.named.perl6fe'
'patterns': [
{
'match': 'TOP'
'name' : 'entity.name.function.regexp.named.TOP.perl6fe'
}
{
'match': '[\\p{Digit}\\p{Alpha}\'\\-_]+'
'name': 'entity.name.function.regexp.named.perl6fe'
Expand Down

0 comments on commit e6c8c77

Please sign in to comment.