Skip to content

Commit 82211ab

Browse files
author
Siddley
committed
Removes HTML Script Tag, changes HTML include + adds HTML+CFML.tmLanguage
Removes the script tag definition yhat had been copied to the Coldfusion language definition because the functionality is now covered bt the dedicated HTML+CFML.tmLanguage Changes the general html include statement to include the new dedicated HTML+CFML.tmLanguage (text.html.coldfusion) instead of the default HTML.tmLanguage (text.html.basic)
1 parent c8648f5 commit 82211ab

2 files changed

Lines changed: 1260 additions & 102 deletions

File tree

Coldfusion.tmLanguage

Lines changed: 1 addition & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -119,107 +119,6 @@
119119
</array>
120120
</dict>
121121

122-
<!-- ****** SCRIPT TAG COPIED FROM HTML.tmLanguage FILE **********
123-
duplicated here to highlight CF markup inside script elements -->
124-
<dict>
125-
<key>begin</key>
126-
<string>(?:^\s+)?(&lt;)((?i:script))\b(?![^&gt;]*/&gt;)</string>
127-
<key>beginCaptures</key>
128-
<dict>
129-
<key>1</key>
130-
<dict>
131-
<key>name</key>
132-
<string>punctuation.definition.tag.html</string>
133-
</dict>
134-
<key>2</key>
135-
<dict>
136-
<key>name</key>
137-
<string>entity.name.tag.script.html</string>
138-
</dict>
139-
</dict>
140-
<key>end</key>
141-
<string>(?&lt;=&lt;/(script|SCRIPT))(&gt;)(?:\s*\n)?</string>
142-
<key>endCaptures</key>
143-
<dict>
144-
<key>2</key>
145-
<dict>
146-
<key>name</key>
147-
<string>punctuation.definition.tag.html</string>
148-
</dict>
149-
</dict>
150-
<key>name</key>
151-
<string>meta.tag.block.cf.script.html</string>
152-
<key>contentName</key>
153-
<string>source.js.embedded.html</string>
154-
<key>patterns</key>
155-
<array>
156-
<dict>
157-
<key>include</key>
158-
<string>#tag-stuff</string>
159-
</dict>
160-
<dict>
161-
<key>begin</key>
162-
<string>(?&lt;!&lt;/(?:script|SCRIPT))(&gt;)</string>
163-
<key>captures</key>
164-
<dict>
165-
<key>1</key>
166-
<dict>
167-
<key>name</key>
168-
<string>punctuation.definition.tag.html</string>
169-
</dict>
170-
<key>2</key>
171-
<dict>
172-
<key>name</key>
173-
<string>entity.name.tag.script.html</string>
174-
</dict>
175-
</dict>
176-
<key>end</key>
177-
<string>(&lt;/)((?i:script))</string>
178-
<key>patterns</key>
179-
<array>
180-
<dict>
181-
<key>include</key>
182-
<string>#embedded-tags</string>
183-
</dict>
184-
<dict>
185-
<key>captures</key>
186-
<dict>
187-
<key>1</key>
188-
<dict>
189-
<key>name</key>
190-
<string>punctuation.definition.comment.js</string>
191-
</dict>
192-
</dict>
193-
<key>match</key>
194-
<string>(//).*?((?=&lt;/script)|$\n?)</string>
195-
<key>name</key>
196-
<string>comment.line.double-slash.js</string>
197-
</dict>
198-
<dict>
199-
<key>begin</key>
200-
<string>/\*</string>
201-
<key>captures</key>
202-
<dict>
203-
<key>0</key>
204-
<dict>
205-
<key>name</key>
206-
<string>punctuation.definition.comment.js</string>
207-
</dict>
208-
</dict>
209-
<key>end</key>
210-
<string>\*/|(?=&lt;/script)</string>
211-
<key>name</key>
212-
<string>comment.block.js</string>
213-
</dict>
214-
<dict>
215-
<key>include</key>
216-
<string>source.js</string>
217-
</dict>
218-
</array>
219-
</dict>
220-
</array>
221-
</dict>
222-
223122

224123
<!-- CFSET|CFRETURN -->
225124
<dict>
@@ -487,7 +386,7 @@
487386

488387
<dict>
489388
<key>include</key>
490-
<string>text.html.basic</string>
389+
<string>text.html.coldfusion</string>
491390
</dict>
492391
</array>
493392

0 commit comments

Comments
 (0)