Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/codeql/textobjects.scm')
| -rw-r--r-- | runtime/queries/codeql/textobjects.scm | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/runtime/queries/codeql/textobjects.scm b/runtime/queries/codeql/textobjects.scm new file mode 100644 index 00000000..8ca02e3c --- /dev/null +++ b/runtime/queries/codeql/textobjects.scm @@ -0,0 +1,16 @@ +(qldoc) @comment.around +(block_comment) @comment.around +(line_comment) @comment.inside +(line_comment)+ @comment.around + +(classlessPredicate + ((varDecl) @parameter.inside . ","?) @parameter.around + (body "{" (_)* @function.inside "}")) @function.around +(memberPredicate + ((varDecl) @parameter.inside . ","?) @parameter.around + (body "{" (_)* @function.inside "}")) @function.around + +(dataclass + ("{" (_)* @class.inside "}")?) @class.around +(datatype) @class.around +(datatypeBranch) @class.around |