Skip to content

Commit f0c9d5e

Browse files
committed
add comment
1 parent 47b0330 commit f0c9d5e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/tree-sitter-qmd/common/common.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ module.exports.rules = {
122122
)),
123123
commonmark_name: $ => token(prec(1, /[a-zA-Z_][a-zA-Z0-9_\-.]*/)),
124124
id_specifier: $ => /[#][a-zA-Z0-9_\-.]+/,
125+
// we're slightly more permissive here than pandoc, which
126+
// requires class specifiers to start with a letter
125127
class_specifier: $ => /[.][a-zA-Z0-9_\-][a-zA-Z0-9_\-.]*/,
126128

127129
commonmark_attribute: $ => prec(3, prec.dynamic(2, seq(

0 commit comments

Comments
 (0)