diff --git a/cfhtml/package.json b/cfhtml/package.json index 2a06f4a..77a2be4 100644 --- a/cfhtml/package.json +++ b/cfhtml/package.json @@ -1,3 +1,20 @@ { - "main": "../bindings/node/cfhtml" - } \ No newline at end of file + "main": "../bindings/node/cfhtml.js", + "tree-sitter": [ + { + "scope": "source.cfhtml", + "file-types": [ + "cfm" + ], + "highlights": [ + "queries/highlights.scm" + ], + "injections": [ + "queries/injections.scm" + ], + "external-files": [ + "../common/define-grammar.js" + ] + } + ] +} \ No newline at end of file diff --git a/cfhtml/test/highlight/cfml.cfm b/cfhtml/test/highlight/cfml.cfm new file mode 100644 index 0000000..679bfe4 --- /dev/null +++ b/cfhtml/test/highlight/cfml.cfm @@ -0,0 +1,10 @@ +
+ + + + + + + + +testtesttest \ No newline at end of file diff --git a/cfml/package.json b/cfml/package.json index 7725b7c..2f90518 100644 --- a/cfml/package.json +++ b/cfml/package.json @@ -1,3 +1,20 @@ { - "main": "../bindings/node/cfml" + "main": "../bindings/node/cfml.js", + "tree-sitter": [ + { + "scope": "source.cfml", + "file-types": [ + "cfc" + ], + "highlights": [ + "queries/highlights.scm" + ], + "injections": [ + "queries/injections.scm" + ], + "external-files": [ + "../common/define-grammar.js" + ] + } + ] } \ No newline at end of file diff --git a/cfscript/package.json b/cfscript/package.json index 7632145..533d16a 100644 --- a/cfscript/package.json +++ b/cfscript/package.json @@ -1,3 +1,21 @@ { - "main": "../bindings/node/cfscript" + "main": "../bindings/node/cfscript.js", + "tree-sitter": [ + { + "scope": "source.cfscript", + "file-types": [ + "cfs" + ], + "highlights": [ + "queries/highlights.scm" + ], + "injections": [ + "queries/injections.scm" + ], + "external-files": [ + "../common/define-grammar.js" + ] + } + ] + } \ No newline at end of file