Skip to content

Commit 6954158

Browse files
author
MattDMo
committed
Match multiple #s in comments
1 parent 643a5be commit 6954158

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PythonImproved-Unicode.YAML-tmLanguage

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ patterns:
1818
'2': {name: support.ipython.cell-number.python}
1919

2020
- name: comment.line.note.python
21-
match: (#)+\s*(BUG|FIXME|TODO|XXX).*$\n?
21+
match: (#+)\s*(BUG|FIXME|TODO|XXX).*$\n?
2222
captures:
2323
'1': {name: punctuation.definition.comment.python}
2424
'2': {name: comment.line.note.notation.python}
2525

2626
- name: comment.line.number-sign.python
27-
match: (#)+.*$\n?
27+
match: (#+).*$\n?
2828
captures:
2929
'1': {name: punctuation.definition.comment.python}
3030

@@ -577,12 +577,12 @@ repository:
577577
comments:
578578
patterns:
579579
- name: comment.line.note.python
580-
match: (#)\s*(BUG|FIXME|TODO|XXX).*$\n?
580+
match: (#+)\s*(BUG|FIXME|TODO|XXX).*$\n?
581581
captures:
582582
'1': {name: punctuation.definition.comment.python}
583583
'2': {name: comment.line.note.notation.python}
584584
- name: comment.line.number-sign.python
585-
match: (#).*$\n?
585+
match: (#+).*$\n?
586586
captures:
587587
'1': {name: punctuation.definition.comment.python}
588588

0 commit comments

Comments
 (0)