Jöran Karl
0859f4aa36
Fix: Syntax highlighting for various issues ( #2810 )
...
* highlighter: Fix region & pattern detection
* syntax/sh: Highlight upper case options too
* syntax/c(pp): Try to synchronize the rules to lower the maintenance effort
* syntax/ruby: Fix explicit filename detection in directories
* highlighter: Respect skip rules in regions
* syntax/sh: Fix parameter expansion, cond. flags and generalize filename via ""
* syntax/php|vi: Correct strings in comments to comments only
Additionally improve vimscript comment handling.
* highlighter: Remove problematic start|end check in find(all)Index()
...and additionally remove recursive region end detection
2023-06-05 17:39:12 -07:00
Mikko
3d4012850a
fix javascript syntax recognizing parts of words as keywords ( #2462 )
2022-07-17 12:18:56 -07:00
Ryan Westlund
c6d04220be
Highlight static as keyword in Javascript files ( #1824 )
2020-08-14 16:56:55 -04:00
Rein F
1e998ab0e4
Updated javascript.yaml syntaf file
2020-01-18 19:05:33 +01:00
Zachary Yedidia
532f932712
Merge branch 'master' into patch-1
2019-12-30 14:24:27 -05:00
Dull Bananas
166e227c9f
Merge branch 'master' into master
2019-11-15 18:46:13 -07:00
Dull Bananas
7d1dc1183c
Improve JavaScript syntax
2019-11-15 18:42:17 -07:00
Elliot Thomas
f12061ea88
ES6 - ES2019 additions
...
symbol.operator: Spread/rest operator.
statement: Generator function, Promise resolve and reject.
type: New built-in types, including section for TypedArrays.
constant.string: Template literal.
2019-10-02 09:50:46 +01:00
Patrick Weingaertner
3a4bdb0db6
add TODO to JS highlighting
2019-07-25 23:22:15 +02:00
Zachary Yedidia
ba98e973c4
Merge pull request #1202 from luizbills/patch-1
...
add 'from' and 'of' keywords in javascript syntax file
2018-12-10 14:30:25 -05:00
Luiz Paulo "Bills
2d0ec82baa
add 'of' statement
2018-09-29 23:23:42 -03:00
Luiz Paulo "Bills
a0a154d957
detect '.mjs' as javascript file
...
`.mjs` extension will be used as ECMAScript Modules
2018-09-29 14:43:10 -03:00
Luiz Paulo "Bills
fa05d63d11
add 'from' in javascript syntax file
2018-09-29 14:40:20 -03:00
Zachary Yedidia
e26417fd14
Fix shebang js highlighting and js division
...
Closes #901
Closes #994
2018-01-17 17:19:03 -05:00
Antoine Motet
47dd65d4e5
Improve JavaScript syntax highlighting
...
- Sort keywords alphabetically
- Use `symbol.operator` for operators instead of `statement`
- Add a basic support for back-tick strings
- Mark unassigned keywords as errors
2017-12-17 23:53:58 +01:00
Fuji Haruka
07bfcc9747
Update javascript.yaml
...
Add statements `async` and `await`.
Its status is stage 3 Draft.
https://tc39.github.io/ecmascript-asyncawait/#async-function-definitions
But I think it's usefull to add, because Node.js >= v7.6 support it.
2017-11-06 20:52:28 +09:00
Zachary Yedidia
a0f3ec805d
Merge
2017-10-06 11:00:31 -04:00
Zachary Yedidia
ea6012922f
Add paren highlighting for js and update runtime
2017-10-06 10:59:43 -04:00
Nicolas
9703d4f52f
support es files and fix parenthesis highlighting
...
* This allows `micro` to use javascript syntax highlighting on `.es`, `.es6|7|8` files
* Fix parenthesis highlighting with @is73 regex, see #864
2017-10-06 16:29:49 +02:00
andrea
ff9a8a1247
few more keywords for js syntax
2017-09-29 16:20:38 +01:00
Zachary Yedidia
47ef864295
Add skip statements to all strings
2017-03-29 09:45:16 -04:00
Zachary Yedidia
299712ead3
Add support for skipping and remove need for lookbehind
2017-03-27 20:53:08 -04:00
Zachary Yedidia
87f54be13a
Add support for lookbehind in region regexes
...
Use the 'regexp2' library for lookahead and lookbehind in region
start and end regular expressions to support things like closing quotes
that aren't preceded by backslashes.
2017-03-22 19:03:06 -04:00
Zachary Yedidia
54bb99d758
Improve new syntax files and fix a region glitch
2017-03-21 15:07:39 -04:00
Zachary Yedidia
b977bf5cca
Add converted syntax files
2017-03-21 14:55:22 -04:00
Zachary Yedidia
2fcb40d5a9
Use new syntax highlighting engine from zyedidia/highlight
...
This changes all the syntax files in the runtime directory and also
changes how syntax highlighting is done from inside micro.
2017-02-26 11:14:35 -05:00