aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/nim/textobjects.scm
diff options
context:
space:
mode:
authorJJ2023-03-26 22:06:48 +0000
committerGitHub2023-03-26 22:06:48 +0000
commitc8fde8b6f99b07faca7e6f93162d887ee132e0f6 (patch)
tree5359d447c27125e9181cddcf5e8620d22d1b661c /runtime/queries/nim/textobjects.scm
parent5d7c90c5cfd6887fc0a43ee695d91f0166955a64 (diff)
Initial Nim language support (#6123)
Diffstat (limited to 'runtime/queries/nim/textobjects.scm')
-rw-r--r--runtime/queries/nim/textobjects.scm19
1 files changed, 19 insertions, 0 deletions
diff --git a/runtime/queries/nim/textobjects.scm b/runtime/queries/nim/textobjects.scm
new file mode 100644
index 00000000..943aa7f0
--- /dev/null
+++ b/runtime/queries/nim/textobjects.scm
@@ -0,0 +1,19 @@
+(routine
+ (block) @function.inside) @function.around
+
+; @class.inside (types?)
+; @class.around
+
+; paramListSuffix is strange and i do not understand it
+(paramList
+ (paramColonEquals) @parameter.inside) @parameter.around
+
+(comment) @comment.inside
+(multilineComment) @comment.inside
+(docComment) @comment.inside
+(multilineDocComment) @comment.inside
+
+(comment)+ @comment.around
+(multilineComment) @comment.around
+(docComment)+ @comment.around
+(multilineDocComment) @comment.around