tests/languages/javascript


Log

Author Commit Date CI Message
Michael Schmidt 1f3f8929 2020-01-05T20:11:53 JS: Added support for keywords after a spread operator (#2148) This PR fixes that keywords after a spread operator weren't highlighted. This is mainly for the `await` and `new` keywords.
Michael Schmidt a23d8f84 2020-01-05T18:34:45 JS: Better regex detection (#2158) This improves the detection of regular expressions.
Michael Schmidt fdb7de0d 2019-10-16T10:58:39 JavaScript: Added Optional Chaining and Nullish Coalescing (#2084) This adds support for optional chaining (`?.`) and nullish coalescing (`??`).
Michael Schmidt 0e5c48d1 2019-09-30T21:09:34 JS: Tokenize `:` as an operator (#2073) This changes the JS tokenization of `:` (colon) to `operator`.
Michael Schmidt c8844286 2019-07-21T22:59:46 Highlight JS tagged template literals (#1931) This adds support for highlighting embedded languages in JavaScript tagged template literals.
Michael Schmidt 7bd08327 2019-07-13T13:42:13 JavaScript: Private fields (#1950) This adds support for private fields in both JS and JS Extras. [Proposal](https://github.com/tc39/proposal-class-fields#private-fields).
Michael Schmidt 6068bf18 2019-05-18T17:57:47 JS: Added support for numeric separators (#1895) This adds support for JavaScript's new numeric separators. E.g. `123_456`.
Michael Schmidt c13d6e7d 2019-04-19T22:07:57 JS: Template strings: Increased bracket count of interpolations (#1845) This increases the number of nested braces which can be matched by JS's template pattern to supported nested objects within interpolation expressions.
Michael Schmidt 9e164935 2019-04-19T21:56:52 Added support for `s` regex flag (#1846) This adds support for the ES2018 `s` (dotall) flag for regular expressions.
Michael Schmidt f2d8e1c7 2019-03-14T15:03:11 JS: Keyword fix (#1808) This fixes false positives with properties which have the same name as keywords.
Michael Schmidt 3560c643 2019-02-28T20:12:11 JS: Fixed variables named "async" (#1738) Fixes variables names "async" in JS.
Michael Schmidt 7bcec584 2019-02-28T19:41:00 Improved JS constant pattern (#1737) This changes the JS constant pattern so that all WebGL constants (like `FLOAT_MAT2x4`) are matched.
Michael Schmidt 8378ac83 2019-02-28T19:33:50 Improved JS function pattern (#1736) Allows for spaces around the punctuations of function invocation via `apply`, `bind`, or `call`.
Michael Schmidt d9fa29a8 2019-02-15T16:03:59 Make `undefined` a keyword in JS (#1740)
Rex Zeng 57a92035 2019-02-12T20:43:31 Improved JavaScript parameter recognization (#1722) - The first letter of a parameter can now be upper case. - Fixes too greedy regex by introducing recursive expressions.
Rex Zeng 0cc8c56a 2018-12-03T20:52:13 Identify JavaScript function parameters (#1446) Support parameters for these types of functions: ```javascript // es6 class method foo(x, y) {} // es6 arrow function (x, y) => x x => x // es5 function function foo(x, y) {} // es5 anonymous function function (x, y) {} ```
Michael Schmidt 2a4758ab 2018-12-01T21:44:57 Improve regex detection in JS (#1473) The pattern for regular expressions in JS now also matches empty character sets and it handles expressions like `/[\]/]/` now correctly.
Michael Schmidt a47c05ad 2018-08-28T05:39:08 Fixed lowercase supposed class names (#1544) This PR fixes a bug with supposed class names. Lowercase supposed class names are no longer highlighted. **Before**: ![before](https://user-images.githubusercontent.com/20878432/44656379-e7c17900-a9f8-11e8-8b1a-7f1dd694263e.png) **After**: ![after](https://user-images.github usercontent.com/20878432/44656379-e7c17900-a9f8-11e8-8b1a-7f1dd694263e.png)
Michael Schmidt 2b62e57b 2018-08-23T22:20:26 Added support for JS BigInt literals (#1542) Add support for BigInt literals to JS and languages extending or including JS.
Michael Schmidt c40f6047 2018-08-19T20:28:57 Highlighting of supposed classes and functions (#1482) Fixes #1471. It also extends function-variable to include object properties. e.g. ```js {foo: function() {}} ```
Michael Schmidt ebd1b9a6 2018-08-19T16:06:34 Fix regex for `catch` and `finally` (#1527) When called as methods on a promise chain, the current regex would mark `catch` and `finally` as keywords. This regex improvement ensures they're only caught as part of a `try / catch` block, and are marked as functions as part of the promise chain.
Golmote db2d0ebb 2018-04-22T15:12:28 JavaScript: Add support for one level of nesting inside template strings. Fix #1397
Golmote 5b043cf8 2018-04-13T08:59:26 JavaScript: Improve Regexp pattern
Golmote 571f2c50 2018-03-26T20:53:20 C-like: Make single-line comments greedy. Fix #1337. Make sure #1340 stays fixed.
Golmote 172d351a 2018-03-26T20:11:41 JavaScript: Improve Regex matching
Golmote 9084481f 2018-03-26T09:17:05 JavaScript: Add support for constants. Fix #1348
Golmote 8ee2cd38 2017-10-10T08:35:13 JavaScript: Better highlighting of functions (#1190)
Andreas Rohner 1736f4aa 2017-02-08T01:36:27 Fix corner cases for the greedy flag By refactoring the tokenize() method into two separate methods, it is possible to recursively clean up any broken tokens left by the greedy feature. This should fix the issue 1075.
Golmote 9f649fbe 2017-05-08T12:05:35 JavaScript: Properly match every operator as a whole token. Fix #1133
Golmote 268d01e3 2016-07-03T02:32:13 Add test for JS operators
Andreas Rohner d80900cc 2016-06-04T19:52:38 Improvement to greedy-flag This patch expands the idea of the greedy flag and significantly improves it, by matching against the whole text instead of just the next couple of tokens. This does not only improve the results, but it should also slightly improve performance.
Andreas Rohner 49cf8991 2016-03-08T15:03:59 Fix minor bug with new greedy-feature This fixes a minor bug that causes invalid highlighting in some edge cases, where two greedy patterns overlap each other.
Andreas Rohner c88036ca 2016-02-19T22:27:22 Add tests for new greedy-pattern feature and fix bug in Kotlin This patch adds tests for the new greedy-pattern feature and fixes a small bug in the Kotlin language, that resulted from that. It also cleans up some of the comments and refactors a few lines in the tokenloop.
Golmote e135947c 2015-10-10T12:48:04 Run gulp and update tests after #801 merge
Golmote 29e26dc3 2015-09-03T23:14:19 JavaScript: Allow for all non-ASCII characters in function names. Fix #400
Golmote 26ad4f31 2015-08-18T23:59:12 Add tests for JavaScript + remove example
Golmote 788f6d5e 2015-08-18T08:20:54 Commit updated line changes
Jannik Zschiesche 799570f9 2015-07-26T14:25:30 Fixed javascript test case
Jannik Zschiesche dec517f3 2015-06-13T15:25:53 Refreshed example test case for new file extension and comment support.
Jannik Zschiesche a806d1cc 2015-06-01T20:39:28 Added first simple test case
Jannik Zschiesche d1f90520 2015-06-01T20:39:11 Implemented test runner