Skip to content

Commit

Permalink
Progress on highlights ( WIP )
Browse files Browse the repository at this point in the history
  • Loading branch information
ghedwards committed Sep 6, 2024
1 parent c39658f commit 4638553
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 4 deletions.
21 changes: 19 additions & 2 deletions cfhtml/package.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
{
"main": "../bindings/node/cfhtml"
}
"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"
]
}
]
}
10 changes: 10 additions & 0 deletions cfhtml/test/highlight/cfml.cfm
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<div test="color: #<cfoutput>#scrollHeight#</cfoutput>"></div>
<cfset result = "##" />

<cfset a = 1 />
<cfset b = "#a#" />
<cfset c = #a# />

<cfdump var="#[a, b, c]#">

<cfoutput>test<cfoutput>test</cfoutput>test</cfoutput>
19 changes: 18 additions & 1 deletion cfml/package.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
]
}
20 changes: 19 additions & 1 deletion cfscript/package.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
]

}

0 comments on commit 4638553

Please sign in to comment.