Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(220)

Unified Diff: test/feature/Syntax/StrictSemiColonsNoLint.js

Issue 7801048: Handle '//:lint' and '//:nolint' comments. Base URL: https://code.google.com/p/traceur-compiler/@master
Patch Set: Move comment-handling to the parser, add 'ignoreNolint' option. Created 12 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/options.js ('K') | « test/feature/Syntax/Error_StrictSemiColonsNoLint.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/feature/Syntax/StrictSemiColonsNoLint.js
diff --git a/test/feature/Syntax/StrictSemiColonsNoLint.js b/test/feature/Syntax/StrictSemiColonsNoLint.js
new file mode 100644
index 0000000000000000000000000000000000000000..936fa9597ccdcf5aca565b769db86a09d8247a66
--- /dev/null
+++ b/test/feature/Syntax/StrictSemiColonsNoLint.js
@@ -0,0 +1,30 @@
+// Options: --strict-semicolons
+
+//:this is a nolint test.
+
+// Note: The leading letter in the var names changes for each expected
+// transition between lint and nolint.
+var a0;
+var a1;
+//:nolint
+var b2
+//:nolint These don't nest (should they?).
+var b3
+// hello lint
+var b4
+var b5
+var b6;
+var b7
+var b8
+//:lint
+//:nolint
+var c1
+var c2
+//:hello lint
+var c3
+var c4
+; // Necessary for nolint-to-lint transitions.
+//:lint
+var d1;
+//:lint
+var d2;
« src/options.js ('K') | « test/feature/Syntax/Error_StrictSemiColonsNoLint.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b