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.
| * | 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
| | |/ | |/|
| * | 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)
* | 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
|
* Update mapfiles.Georg Brandl2016-01-161-1/+1
|
* Added more aliases for TypeScriptSamuel Marks2016-01-091-1/+1
|
* Added Decorators to TypeScript lexerWolfgang Mayr2015-10-261-0/+2
|
* More style and markup fixes.Georg Brandl2015-10-171-10/+14
|
* Merged in EricFromCanada/pygments-main (pull request #417)Tim Hatch2015-10-161-13/+244
|\ | | | | | | Update Lasso lexer with fixes for edge cases and reordered builtins list
| * Fix out of order alternation in Earl GreyTim Hatch2015-10-141-2/+2
| |
| * Merged in MadcapJake/pygments-main (pull request #499)Tim Hatch2015-10-141-10/+29
| |\
| | * Cleanups in preparation for 2.1 release.Tim Hatch2015-10-141-2/+2
| | |
| | * Fixes #1100. Add support for ECMAScript6 syntax, with example file.Tim Hatch2015-10-131-8/+26
| | |
| | * Add basic support for template strings to the Javascript lexer.Marcus R. Brown2015-09-211-0/+1
| | |
| * | Fix decrement op, op-assignment, and range opMadcapJake2015-09-271-3/+5
| | |
| * | Fix dot-strings, add backticks, add dbsMadcapJake2015-09-251-32/+57
| | |
| * | Fix fields and methodsMadcapJake2015-09-241-14/+15
| | |
| * | Add earl-grey lexerMadcapJake2015-09-241-2/+186
| |/
| * Detect .jsm files as JavaScriptGregory Szorc2015-04-241-1/+1
| | | | | | | | | | | | The .jsm extension for JavaScript files is used by a few projects, notably Mozilla projects like Firefox. .jsm files should be treated as equivalent to .js files.
| * Added a new token type Comment.Hashbang with its documentation, and a ↵Miikka Salminen2015-03-071-1/+1
| | | | | | | | support for it in Javascript, Perl, Python, Ruby and Bash lexers.
| * Copyright year update.Georg Brandl2015-01-211-1/+1
| |
| * spelling/grammar/syntax fixes for docsEricFromCanada2014-11-141-1/+1
| |
* | account for when self and givenblock appear as member methodsEricFromCanada2014-11-241-1/+2
| |
* | add currentcapture & givenblock to list of special Lasso builtinsEricFromCanada2014-11-241-1/+1
| |
* | improved list of built-in Lasso typesEricFromCanada2014-11-141-1/+2
| |
* | allow space in data member accessorEricFromCanada2014-11-141-1/+1
| |
* | [noprocess] should still work after [no_square_brackets]EricFromCanada2014-11-141-2/+4
| |
* | -infinity is valid, -nan is notEricFromCanada2014-11-141-2/+2
| |
* | allow space after dot operatorsEricFromCanada2014-11-141-1/+1
| |
* | don't allow line breaks in hashbang or escapesEricFromCanada2014-11-141-2/+2
| |
* | spelling/grammar/syntax fixes for docsEricFromCanada2014-11-141-1/+1
|/
* Closes #1055: fixup guessing routines for HTML/XML related markupGeorg Brandl2014-11-081-3/+1
| | | | | | | * remove too broad recognition for Lasso lexer * recognize XML declaration (<?xml ...?>) as XML * make HTML doctype recognition more general (HTML5 only requires <!DOCTYPE html>) * fix PHP not to recognize XML declarations
* Simplify charclasses in a few more modulesGeorg Brandl2014-11-061-38/+39
|