Skip to content

Commit

Permalink
Adding GenStat language 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 7b909c6 commit a14e24c
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
### 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)

## [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 @@ -83,6 +83,7 @@ The default 5 can be modifed to change the colors, and more can be added.
* F#
* Fortran
* gdscript
* GenStat
* Go
* GraphQL
* Groovy
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"onLanguage:fsharp",
"onLanguage:fortran-modern",
"onLanguage:gdscript",
"onLanguage:genstat",
"onLanguage:go",
"onLanguage:graphql",
"onLanguage:groovy",
Expand Down
4 changes: 4 additions & 0 deletions src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,10 @@ export class Parser {
this.setCommentFormat("{#", "{#", "#}");
break;

case "genstat":
this.setCommentFormat("\\", '"', '"');
break;

case "plaintext":
this.isPlainText = true;

Expand Down
17 changes: 17 additions & 0 deletions src/test/samples/genstat.gen
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
print 0
\ Line comment only at the start of a line
\ Line comment only at the start of a line
\ ! Line comment only at the start of a line
\ * Line comment only at the start of a line
print 2 " Block comment at the end of a line "
print 3 " Block comment at the end of a line
! testing
possibly continuing to the next line
"
print 4
"=============================================================================
Long block comment
=============================================================================="
print 5
" Another block comment"
print 6

0 comments on commit a14e24c

Please sign in to comment.