mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
JS: support purs classification
This commit is contained in:
@@ -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)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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 |
|
||||
|
||||
@@ -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 |
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
// Generated by purs bundle 0.11.7
|
||||
@@ -0,0 +1 @@
|
||||
// Generated by purs version 0.11.7
|
||||
Reference in New Issue
Block a user