summaryrefslogtreecommitdiff
path: root/pygments/lexers/javascript.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Make TypeScript the default for .ts files.Matth?us G. Chajdas2019-02-121-0/+4
|
* Merge heads.Georg Brandl2018-11-281-3/+3
|\
| * Fix remaining 'DeprecationWarning: invalid escape sequence' occurrences in ↵Andreas Kloeckner2018-06-191-3/+3
| | | | | | | | lexer files
* | Minimal fixup changes for the release, add release date.2.3.0Georg Brandl2018-11-251-2/+4
|/
* Merged in chipx86/pygments-main/typescript-vs-typoscript (pull request #693)Georg Brandl2017-01-221-1/+7
|\ | | | | | | Implement guessing and resolution between TypeScript and TypoScript.
| * Remove the fallback values from the new analyse_text changes.Christian Hammond2017-01-221-5/+1
| | | | | | | | | | | | | | | | | | | | These values would trigger problems when guessing content without a filename, and really aren't needed. They've been removed, allowing the standard behavior to take place. On top of this, the regex for TypeScript has been slightly altered to include a whitespace match after "export" to be within the group for the "export" text.
| * Implement guessing and resolution between TypeScript and TypoScript.Christian Hammond2017-01-221-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new TypoScript lexer was taking precedence over TypeScript, which share the same file extension. This meant that any previously-working TypeScript source files would be misidentified and highlighted incorrectly. This was due to the lack of a guesser for TypeScript, and TypoScript having a naturally higher priority. This change balances things a bit between the lexers. TypoScript now has an explicitly-higher priority than TypeScript, both for the file extension and defaults when guessing content, as it has less we can rely on in terms of content. TypeScript has a lower priority, but has an analyse_text() method that checks for common symbols in code, giving it a better chance of matching for actual TypeScript source files. TypeScript also gains an additional file extension, *.tsx. Ideally, this would have its own lexer that understood inline JSX syntax, but giving general TypeScript syntax highlighting for these files is a step in the right direction.
* | Merged in EricFromCanada/pygments-main (pull request #619)Georg Brandl2017-01-221-13/+31
|\ \ | | | | | | | | | update LassoLexer
| * \ Merged in chipx86/pygments-main/typescript-string-literals (pull request #692)Georg Brandl2017-01-221-1/+18
| |\ \ | | | | | | | | | | | | Add support for string literals to TypeScriptLexer.
| | * | Add support for string literals to TypeScriptLexer.Christian Hammond2017-01-201-1/+18
| | |/ | | | | | | | | | | | | | | | This introduces support for string literals to the TypeScript lexer. The rules are consistent with those in JavascriptLexer, helping to ensure the same behavior and capabilities between the two.
| | * Fix for floats with leading/trailing ., reclassify es2015 arrow notation as ↵Ash Searle2016-09-011-8/+8
| | | | | | | | | | | | punctuation and add new es2015 regex flags (sticky and unicode)
| * | Merged in ↵Georg Brandl2017-01-221-3/+4
| |\ \ | | | | | | | | | | | | | | | | | | | | devoncarew1/pygments-main/devoncarew1/javascriptpy-edited-online-with-bitbucke-1472355033252 (pull request #657) javascript.py edited online with Bitbucket
| | * | javascript.py edited online with Bitbucketdevoncarew12016-08-281-3/+4
| | |/
| * | Copyright update.Georg Brandl2017-01-221-1/+1
| | |
| * | Add support for partials and path segments for Handlebars.Christian Hammond2016-11-041-0/+1506
| / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This introduces support for some missing features to the Handlebars lexer: Partials and path segments. Partials mostly appeared to work before, but the `>` in `{{> ... }}` would appear as a syntax error, as could other components of the partial. This change introduces support for: * Standard partials: `{{> partialName}}` * Partials with parameters: `{{> partialName varname="value"}}` * Ddynamic partials: `{{> (partialFunc)}}` * Ddynamic partials with lookups: `{{> (lookup ../path "partialName")}}` * Partial blocks: `{{> @partial-block}}` * Inline partials: `{{#*inline}}..{{/inline}}` It also introduces support for path segments, which can reference content in the current context or in a parent context. For instance, `this.name`, `this/name`, `./name`, `../name`, `this/name`, etc. These are all now tracked as variables.
* | simplify Lasso's root state with lookaheadEricFromCanada2016-12-031-8/+3
| |
* | Lasso: update keywords for 9.3.2, require \b after parameter localEricFromCanada2016-07-131-16/+16
|/
* Rework CoffeeScript use of slashstartsregex.Tim Hatch2016-05-311-8/+14
| | | | Fixes #991
* add missing view procMichael Demmer2016-03-021-1/+1
|
* add missing reduce procMichael Demmer2016-03-021-1/+1
|
* add a lexer for the juttle languageMichael Demmer2016-03-021-1/+61
|
* Fix most complaints from regexlint.Georg Brandl2016-02-141-40/+40
|
* merge default into stableGeorg Brandl2016-01-171-0/+1440