JS: support purs classification

This commit is contained in:
Esben Sparre Andreasen
2018-12-11 09:17:01 +01:00
parent 3879e57f18
commit e016098f86
5 changed files with 7 additions and 1 deletions

View File

@@ -42,7 +42,7 @@ class CodeGeneratorMarkerComment extends GeneratedCodeMarkerComment {
*/
private predicate codeGeneratorMarkerComment(Comment c, string tool) {
exists (string toolPattern |
toolPattern = "js_of_ocaml|CoffeeScript|LiveScript|dart2js|ANTLR|PEG\\.js|Opal|JSX|jison(?:-lex)?|(?:Microsoft \\(R\\) AutoRest Code Generator)" and
toolPattern = "js_of_ocaml|CoffeeScript|LiveScript|dart2js|ANTLR|PEG\\.js|Opal|JSX|jison(?:-lex)?|(?:Microsoft \\(R\\) AutoRest Code Generator)|purs" and
tool = c.getText().regexpCapture("(?s)[\\s*]*(?:parser |Code )?[gG]eneratedy? (?:from .*)?by (" + toolPattern + ")\\b.*", 1)
)
}

View File

@@ -21,6 +21,8 @@
| pandoc.html:0:0:0:0 | pandoc.html | generated |
| peg-js.js:0:0:0:0 | peg-js.js | generated |
| polymer.html:0:0:0:0 | polymer.html | template |
| purs-bundle.js:0:0:0:0 | purs-bundle.js | generated |
| purs.js:0:0:0:0 | purs.js | generated |
| some-template.html:0:0:0:0 | some-template.html | template |
| templ.js:0:0:0:0 | templ.js | template |
| textmate.html:0:0:0:0 | textmate.html | generated |

View File

@@ -5,4 +5,6 @@
| jsx.js:1:1:1:105 | // gene ... 977102) | JSX |
| opal-test.js:1:1:1:30 | /* Gene ... 10.3 */ | Opal |
| peg-js.js:2:3:6:5 | /*\\n * ... /\\n */ | PEG.js |
| purs-bundle.js:1:1:1:34 | // Gene ... 0.11.7 | purs |
| purs.js:1:1:1:35 | // Gene ... 0.11.7 | purs |
| tst.dart.js:1:1:1:57 | // Gene ... mpiler. | dart2js |

View File

@@ -0,0 +1 @@
// Generated by purs bundle 0.11.7

View File

@@ -0,0 +1 @@
// Generated by purs version 0.11.7