Skip to content

Commit

Permalink
Adding ColdFusion support, closes #149
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-bond committed May 15, 2019
1 parent a14e24c commit 9e2a4be
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
### Features
* Adding Markdown support ([54e51fb](https://github.com/aaron-bond/better-comments/commit/54e51fb)), closes [#91](https://github.com/aaron-bond/better-comments/issues/91)
* Adding Apex support ([301644e](https://github.com/aaron-bond/better-comments/commit/301644e)), closes [#143](https://github.com/aaron-bond/better-comments/issues/143)
* Adding GenStat support ([XXX](https://github.com/aaron-bond/better-comments/commit/XXX)), closes [#149](https://github.com/aaron-bond/better-comments/issues/149)
* Adding GenStat support ([a14e24c](https://github.com/aaron-bond/better-comments/commit/a14e24c)), closes [#149](https://github.com/aaron-bond/better-comments/issues/149)
* Adding ColdFusion support ([XXX](https://github.com/aaron-bond/better-comments/commit/XXX)), closes [#135](https://github.com/aaron-bond/better-comments/issues/135)

## [2.0.4] (2019-05-14)
### Bug Fixes
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ The default 5 can be modifed to change the colors, and more can be added.
* C
* C#
* C++
* ColdFusion
* Clojure
* COBOL
* CoffeeScript
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"onLanguage:bibtex",
"onLanguage:c",
"onLanguage:clojure",
"onLanguage:cfml",
"onLanguage:COBOL",
"onLanguage:coffeescript",
"onLanguage:cpp",
Expand Down
4 changes: 4 additions & 0 deletions src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,10 @@ export class Parser {
case "genstat":
this.setCommentFormat("\\", '"', '"');
break;

case "cfml":
this.setCommentFormat("<!---", "<!---", "--->");
break;

case "plaintext":
this.isPlainText = true;
Expand Down
14 changes: 14 additions & 0 deletions src/test/samples/cfc.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<cfoutput>
<!---
! ColdFusion Wrote me
--->
No, it didn't
</cfoutput>
<cfoutput>
<!--- ! ColdFusion Wrote me --->
No, it didn't
</cfoutput>
<cfoutput>
<!--- * ColdFusion Wrote me --->
No, it didn't
</cfoutput>
14 changes: 14 additions & 0 deletions src/test/samples/coldfusion.cfm
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<cfoutput>
<!---
! ColdFusion Wrote me
--->
No, it didn't
</cfoutput>
<cfoutput>
<!--- ! ColdFusion Wrote me --->
No, it didn't
</cfoutput>
<cfoutput>
<!--- * ColdFusion Wrote me --->
No, it didn't
</cfoutput>

0 comments on commit 9e2a4be

Please sign in to comment.