* Anything a grammar calls a comment. * * Substring rather than equality because the spelling is per-grammar: * `comment`, `line_comment`, `block_comment`, `doc_comment`, `html_comment`, * `comment_directive`, `preproc_comment`.
(type: string)
| 86 | * `comment_directive`, `preproc_comment`. |
| 87 | */ |
| 88 | function isCommentType(type: string): boolean { |
| 89 | return type.includes('comment'); |
| 90 | } |
| 91 | |
| 92 | /** |
| 93 | * A node whose leaves are string content unless an interpolation interrupts. |