Skip to content

Commit f766495

Browse files
committed
🚸 Improve comment body
1 parent 7b516bf commit f766495

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

grammar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ export default grammar({
916916
$._command_string,
917917
),
918918

919-
comment: $ => seq('#', alias(/[^\n]*/, $.body)),
919+
comment: $ => seq('#', /\s*/, alias(/[^\n]*/, $.body)),
920920
_space: _ => prec(-1, repeat1(/[ \t]/)),
921921
},
922922
});

tree-sitter.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515
],
1616
"metadata": {
17-
"version": "0.1.2",
17+
"version": "0.1.3",
1818
"license": "MIT",
1919
"description": "tmux grammar for tree-sitter",
2020
"authors": [

0 commit comments

Comments
 (0)