3# http://www.sublimetext.com/docs/3/syntax.html
4name: JavaScript (Babel)
12first_line_match: ^#!\s*/.*\b(node|js)$\n?
18 - include: round-brackets
19 - include: square-brackets
20 - include: curly-brackets
21 class-method-definition:
22 - match: '(@@[_$a-zA-Z][$\w]*|static|return)(?=\s*[<(])|(?=\s*<)'
24 1: keyword.operator.flowtype.js
26 - meta_scope: meta.short-method.flowtype.js
27 - match: '(?=\s*[;{])'
29 - include: flowtype-polymorph
30 - include: function-declaration-parameters
31 - include: flowtype-annotation
33 - include: curly-brackets
34 - match: '(?<=[]"''])\s*(?=[<(])'
36 - meta_scope: meta.class-method.computed.js
37 - match: '(?=\s*[;{])'
39 - include: flowtype-polymorph
40 - include: function-declaration-parameters
41 - include: flowtype-annotation
43 - include: curly-brackets
48 ((')((?>[^'\\]|\\.)*)('))|
49 ((")((?>[^"\\]|\\.)*)("))|
50 (([_$a-zA-Z][$\w]*|\d+))
55 3: punctuation.definition.string.begin.js
56 4: entity.name.function.js
57 5: punctuation.definition.string.end.js
59 7: punctuation.definition.string.begin.js
60 8: entity.name.function.js
61 9: punctuation.definition.string.end.js
62 10: string.unquoted.js
63 11: entity.name.function.js
65 - meta_scope: meta.class-accessor.js
66 - match: '(?=\s*[;{])'
68 - include: flowtype-polymorph
69 - include: function-declaration-parameters
70 - include: flowtype-annotation
72 - include: curly-brackets
76 ((')((?>[^'\\]|\\.)*)('))|
77 ((")((?>[^"\\]|\\.)*)("))|
78 (([_$a-zA-Z][$\w]*|\d+))
82 2: punctuation.definition.string.begin.js
83 3: entity.name.function.js
84 4: punctuation.definition.string.end.js
86 6: punctuation.definition.string.begin.js
87 7: entity.name.function.js
88 8: punctuation.definition.string.end.js
90 10: entity.name.function.js
92 - meta_scope: meta.class-method.js
93 - match: '(?=\s*[;{])'
95 - include: flowtype-polymorph
96 - include: function-declaration-parameters
97 - include: flowtype-annotation
99 - include: curly-brackets
100 class-method-storage:
101 - match: (?<!\.)\b(?>static|declare)\b
102 scope: storage.modifier.js
103 - match: (?<!\.)\b(async)\b
104 scope: storage.type.js
105 - match: (?<!\.)\b(get|set)\b(?!\s*\()
106 scope: storage.type.js
108 scope: keyword.generator.asterisk.js
110 - match: '([_$a-zA-Z][$\w]*)(?=\s*[:=])'
112 1: variable.other.property.js
114 - meta_scope: meta.class.property.js
115 - match: '(?=\s*[;}])'
117 - include: flowtype-annotation
118 - include: expression
122 0: punctuation.definition.comment.js
124 - meta_scope: comment.block.documentation.js
127 0: punctuation.definition.comment.js
131 0: punctuation.definition.comment.begin.js
133 - meta_scope: comment.block.js
136 0: punctuation.definition.comment.end.js
138 - match: (?><!--|-->)
139 scope: comment.block.html.js
141 0: punctuation.definition.comment.js
143 scope: comment.line.double-slash.js
145 1: punctuation.definition.comment.js
147 scope: comment.line.shebang.js
149 1: punctuation.definition.comment.js
151 - include: literal-function-labels
152 - include: literal-arrow-function-labels
153 - include: literal-labels
154 - include: literal-for
155 - include: literal-switch
156 - include: styled-components
158 - include: expression
159 - include: literal-punctuation
163 0: meta.brace.curly.begin.js
165 - meta_scope: meta.group.braces.curly.js
168 0: meta.brace.curly.end.js
174 (@)([_$a-zA-Z][$\w]*)\b
175 scope: tag.decorator.js
177 1: punctuation.definition.tag.js
178 2: entity.name.tag.js
180 - include: merge-conflits
181 - include: literal-regexp
182 - include: literal-jsx
183 - include: es7-decorators
184 - include: support-class
185 - include: support-other
186 - include: literal-function
187 - include: literal-arrow-function
188 - include: literal-prototype
189 - include: literal-keywords
190 - include: literal-method
191 - include: literal-module
192 - include: literal-class
193 - include: flowtype-declaration
194 - include: literal-number
195 - include: literal-template-string
196 - include: literal-string
197 - include: literal-language-constant
198 - include: literal-language-variable
199 - include: literal-constructor
200 - include: literal-method-call
201 - include: literal-function-call
204 - include: literal-operators
205 - include: literal-variable
207 - match: (?:(\?)\s*)?(:)
209 1: keyword.operator.flowtype.optional.js
210 2: keyword.operator.flowtype.annotation.js
212 - meta_scope: meta.flowtype.annotation.js
213 - include: flowtype-tokens
219 0: punctuation.section.flowtype.begin.js
223 0: punctuation.section.flowtype.end.js
225 - include: flowtype-tokens
226 flowtype-declaration:
227 - match: (?<!\.)\b(declare)\b
228 scope: support.type.declare.flowtype.js
229 - match: '(?<!\.)\b(type)\b(?=\s*[_$a-zA-Z])'
231 1: support.type.type.flowtype.js
233 - meta_scope: meta.type.flowtype.js
234 - match: (?=\s*(;|from))
236 - include: flowtype-tokens
237 - match: '(?<!\.)\b(type)\b(?=\s*{)'
239 1: support.type.type.flowtype.js
241 - meta_scope: meta.type.flowtype.js
245 - include: flowtype-brackets
246 - include: flowtype-polymorph
247 - match: '([_$a-zA-Z][$\w]*)'
248 scope: entity.name.type.js
250 - include: support-class
251 - match: \b(?:any|bool|boolean|mixed|number|string|void)\b
252 scope: constant.other.primitve.flowtype.js
253 - match: '[_$a-zA-Z][$\w]*'
254 scope: variable.other.flowtype.js
256 scope: keyword.operator.flowtype.optional.js
260 0: punctuation.section.flowtype.begin.js
262 - meta_scope: meta.flowtype.polymorph.js
265 0: punctuation.section.flowtype.end.js
267 - include: flowtype-tokens
269 - match: '(?<=[:?|&=])(?=\s*{)'
273 - include: flowtype-brackets
274 - match: '\s*([|&])\s*'
275 scope: meta.flowtype.set.js
277 1: keyword.operator.flowtype.other.js
278 - match: '[*:?&|.]|\.\.\.|\b(typeof)\b'
279 scope: keyword.operator.flowtype.other.js
282 0: punctuation.section.flowtype.begin.js
286 0: punctuation.section.flowtype.end.js
288 - include: flowtype-tokens
291 0: punctuation.section.flowtype.begin.js
295 0: punctuation.section.flowtype.end.js
297 - include: flowtype-tokens
300 0: punctuation.section.flowtype.begin.js
304 0: punctuation.section.flowtype.end.js
306 - include: flowtype-tokens
309 0: keyword.operator.flowtype.js
311 - meta_scope: meta.flowtype.function.js
312 - match: "(?<=}|[_$a-zA-Z])"
314 - include: flowtype-brackets
315 - include: flowtype-identifier
317 - include: flowtype-identifier
318 - include: literal-string
320 function-declaration-parameters:
323 0: punctuation.definition.parameters.begin.js
327 0: punctuation.definition.parameters.end.js
330 - include: flowtype-annotation
331 - match: (?<!\.)\.\.\.
332 scope: keyword.operator.spread.js
333 - match: '([_$a-zA-Z][$\w]*)'
334 scope: variable.parameter.function.js
336 scope: punctuation.separator.parameter.function.js
339 0: keyword.operator.assignment.js
341 - meta_scope: meta.parameter.optional.js
344 - include: expression
348 - meta_scope: meta.graphql.js
351 - include: scope:source.graphql
358 - match: \s*+`#graphql
360 - meta_scope: meta.graphql.js
363 - include: scope:source.graphql
370 jsx-attribute-assignment:
372 scope: keyword.operator.assignment.jsx
374 - match: '[_$a-zA-Z][-$\w]*'
375 scope: entity.other.attribute-name.jsx
377 - include: jsx-attribute-name
378 - include: jsx-attribute-assignment
379 - include: jsx-string-quoted
380 - include: jsx-evaluated-code
383 - match: '&(?:[a-zA-Z0-9]+|#\d+|#x\h+);'
384 scope: constant.character.entity.jsx
386 scope: invalid.illegal.bad-ampersand.jsx
390 0: punctuation.section.embedded.begin.jsx
392 - meta_scope: meta.embedded.expression.jsx
395 0: punctuation.section.embedded.end.jsx
397 - include: expression
401 0: punctuation.definition.string.begin.jsx
403 - meta_scope: string.quoted.jsx
406 0: punctuation.definition.string.end.jsx
408 - include: jsx-entities
412 0: meta.tag.jsx punctuation.definition.tag.end.jsx
416 - include: jsx-tag-start
417 - include: jsx-evaluated-code
418 - include: jsx-entities
420 - match: '(<)([_$a-zA-Z][-$:.\w]*[$\w]*)'
422 1: meta.tag.jsx punctuation.definition.tag.begin.jsx
423 2: meta.tag.jsx entity.name.tag.jsx
425 - match: (</)(\2)(>)|(/>)
427 1: meta.tag.jsx punctuation.definition.tag.begin.jsx
428 2: meta.tag.jsx entity.name.tag.jsx
429 3: meta.tag.jsx punctuation.definition.tag.end.jsx
430 4: meta.tag.jsx punctuation.definition.tag.end.jsx
432 - include: jsx-tag-end
433 - include: jsx-attributes
435 scope: invalid.illegal.tag.incomplete.jsx
436 literal-arrow-function:
439 (?:([_$a-zA-Z][$\w]*)\s*(=)\s*)?
441 (?=(\((?>(?>[^()]+)|\g<-1>)*\))\s*(=>))
443 1: entity.name.function.js
444 2: keyword.operator.assignment.js
447 - meta_scope: meta.function.arrow.js
448 - match: (?<=\))\s*(=>)
450 1: storage.type.function.arrow.js
452 - include: function-declaration-parameters
455 (?:([_$a-zA-Z][$\w]*)\s*(=)\s*)?
457 \b([_$a-zA-Z][$\w]*)\s*(=>)
458 scope: meta.function.arrow.js
460 1: entity.name.function.js
461 2: keyword.operator.assignment.js
463 4: variable.parameter.function.js
464 5: storage.type.function.arrow.js
469 (\.)([_$a-zA-Z][$\w]*)
472 \s*(?=(\((?>(?>[^()]+)|\g<-1>)*\))\s*(=>))
474 1: entity.name.class.js
475 2: keyword.operator.accessor.js
476 3: variable.language.prototype.js
477 4: keyword.operator.accessor.js
478 5: entity.name.function.js
479 6: keyword.operator.assignment.js
482 - meta_scope: meta.prototype.function.arrow.js
483 - match: (?<=\))\s*(=>)
485 1: storage.type.function.arrow.js
487 - include: function-declaration-parameters
492 (\.)([_$a-zA-Z][$\w]*)
495 \s*\b([_$a-zA-Z][$\w]*)\s*(=>)
496 scope: meta.prototype.function.arrow.js
498 1: entity.name.class.js
499 2: keyword.operator.accessor.js
500 3: variable.language.prototype.js
501 4: keyword.operator.accessor.js
502 5: entity.name.function.js
503 6: keyword.operator.assignment.js
505 8: variable.parameter.function.js
506 9: storage.type.function.arrow.js
510 (\.)([_$a-zA-Z][$\w]*)
513 \s*(?=(\((?>(?>[^()]+)|\g<-1>)*\))\s*(=>))
515 1: entity.name.class.js
516 2: keyword.operator.accessor.js
517 3: entity.name.function.js
518 4: keyword.operator.assignment.js
521 - meta_scope: meta.function.static.arrow.js
522 - match: (?<=\))\s*(=>)
524 1: storage.type.function.arrow.js
526 - include: function-declaration-parameters
530 (\.)([_$a-zA-Z][$\w]*)
533 \s*\b([_$a-zA-Z][$\w]*)\s*(=>)
534 scope: meta.function.static.arrow.js
536 1: entity.name.class.js
537 2: keyword.operator.accessor.js
538 3: entity.name.function.js
539 4: keyword.operator.assignment.js
541 6: variable.parameter.function.js
542 7: storage.type.function.arrow.js
543 literal-arrow-function-labels:
547 ((')((?>[^'\\]|\\.)*)('))|
548 ((")((?>[^"\\]|\\.)*)("))|
549 (([_$a-zA-Z][$\w]*|\d+))
553 \s*(?=(\((?>(?>[^()]+)|\g<-1>)*\))\s*(=>))
556 2: punctuation.definition.string.begin.js
557 3: entity.name.function.js
558 4: punctuation.definition.string.end.js
560 6: punctuation.definition.string.begin.js
561 7: entity.name.function.js
562 8: punctuation.definition.string.end.js
563 9: string.unquoted.js
564 10: entity.name.function.js
565 11: punctuation.separator.key-value.js
568 - meta_scope: meta.function.json.arrow.js
569 - match: (?<=\))\s*(=>)
571 1: storage.type.function.arrow.js
573 - include: function-declaration-parameters
577 ((')((?>[^'\\]|\\.)*)('))|
578 ((")((?>[^"\\]|\\.)*)("))|
579 (([_$a-zA-Z][$\w]*|\d+))
583 \s*\b([_$a-zA-Z][$\w]*)\s*(=>)
584 scope: meta.function.json.arrow.js
587 2: punctuation.definition.string.begin.js
588 3: entity.name.function.js
589 4: punctuation.definition.string.end.js
591 6: punctuation.definition.string.begin.js
592 7: entity.name.function.js
593 8: punctuation.definition.string.end.js
594 9: string.unquoted.js
595 10: entity.name.function.js
596 11: punctuation.separator.key-value.js
598 13: variable.parameter.function.js
599 14: storage.type.function.arrow.js
601 - match: (?<!\.)\b(?:(class)|(interface))\b
603 1: storage.type.class.js
604 2: storage.type.interface.flowtype.js
606 - meta_scope: meta.class.js
609 0: meta.brace.curly.end.js
612 - match: '([_$a-zA-Z][$\w]*)'
614 0: entity.name.class.js
619 - include: flowtype-polymorph
620 - match: (?<!\.)\b(extends)\b
622 0: storage.type.extends.js
624 - meta_scope: meta.class.extends.js
627 - include: flowtype-polymorph
628 - include: expression
631 0: meta.brace.curly.begin.js
635 - include: es7-decorators
636 - include: class-properties
637 - include: class-method-definition
638 - include: class-method-storage
642 - match: '(new)\s+(?=[_$a-zA-Z][$\w.]*)'
644 1: keyword.operator.new.js
646 - meta_scope: meta.instance.constructor.js
647 - match: '(?![_$a-zA-Z][$\w.]*)'
649 - include: support-class
650 - include: support-other
651 - match: '([_$a-zA-Z][$\w.]*\.)?([_$a-zA-Z][$\w]*)'
653 2: variable.function.constructor.js
655 - match: (?<!\.)\b(for)\b
657 1: keyword.control.loop.js
659 - meta_scope: meta.for.js
662 0: meta.brace.round.end.js
667 0: meta.brace.round.begin.js
671 - include: literal-keyword-storage
672 - include: expression
673 - include: literal-punctuation
677 (?:([_$a-zA-Z][$\w]*)\s*(=)\s*)?
679 (function)(?>\s*(\*)|(?=[\s(<]))
680 \s*([_$a-zA-Z][$\w]*)?
682 1: entity.name.function.js
683 2: keyword.operator.assignment.js
685 4: storage.type.function.js
686 5: keyword.generator.asterisk.js
687 6: entity.name.function.js
689 - meta_scope: meta.function.js
692 - include: flowtype-polymorph
693 - include: function-declaration-parameters
698 (\.)([_$a-zA-Z][$\w]*)
701 \s*(function)(?>\s*(\*)|(?=[\s(<]))
702 \s*([_$a-zA-Z][$\w]*)?\s*
704 1: entity.name.class.js
705 2: keyword.operator.accessor.js
706 3: variable.language.prototype.js
707 4: keyword.operator.accessor.js
708 5: entity.name.function.js
709 6: keyword.operator.assignment.js
711 8: storage.type.function.js
712 9: keyword.generator.asterisk.js
713 10: entity.name.function.js
715 - meta_scope: meta.function.prototype.js
718 - include: flowtype-polymorph
719 - include: function-declaration-parameters
723 (\.)([_$a-zA-Z][$\w]*)
726 \s*(function)(?>\s*(\*)|(?=[\s(<]))
727 \s*([_$a-zA-Z][$\w]*)?\s*
729 1: entity.name.class.js
730 2: keyword.operator.accessor.js
731 3: entity.name.function.js
732 4: keyword.operator.assignment.js
734 6: storage.type.function.js
735 7: keyword.generator.asterisk.js
736 8: entity.name.function.js
738 - meta_scope: meta.function.static.js
741 - include: flowtype-polymorph
742 - include: function-declaration-parameters
743 literal-function-call:
744 - match: '([_$a-zA-Z][$\w]*)\s*(\(\s*\))'
745 scope: meta.function-call.without-arguments.js
747 1: variable.function.js
748 2: meta.group.braces.round.function.arguments.js
749 - match: '([_$a-zA-Z][$\w]*)\s*(?=\()'
750 scope: meta.function-call.with-arguments.js
752 1: variable.function.js
753 - match: '([_$a-zA-Z][$\w]*)\s*(?=`)'
754 scope: meta.function-call.tagged-template.js
756 1: variable.function.js
757 literal-function-labels:
761 ((')((?>[^'\\]|\\.)*)('))|
762 ((")((?>[^"\\]|\\.)*)("))|
763 (([_$a-zA-Z][$\w]*|\d+))
767 \s*(function)(?>\s*(\*)|(?=[\s(<]))
768 \s*([_$a-zA-Z][$\w]*)?
771 2: punctuation.definition.string.begin.js
772 3: entity.name.function.js
773 4: punctuation.definition.string.end.js
775 6: punctuation.definition.string.begin.js
776 7: entity.name.function.js
777 8: punctuation.definition.string.end.js
778 9: string.unquoted.js
779 10: entity.name.function.js
780 11: punctuation.separator.key-value.js
782 13: storage.type.function.js
783 14: keyword.generator.asterisk.js
784 15: entity.name.function.js
786 - meta_scope: meta.function.json.js
789 - include: flowtype-polymorph
790 - include: function-declaration-parameters
792 - match: '(?<=\(|\{|\[|,|&&|\|\||\?|:|=|=>|\Wreturn|^return|\Wdefault|^)(?=\s*<[_$a-zA-Z])'
794 - meta_content_scope: meta.jsx.js
797 - include: jsx-tag-start
798 literal-keyword-storage:
799 - match: (?<!\.)\b(?>const|let|var)\b
800 scope: storage.type.js
802 - include: literal-keyword-storage
803 - match: (?<!\.)\b((?>await|yield))\b(?:\s*(\*))?
805 1: keyword.control.flow.js
806 2: keyword.generator.asterisk.js
807 - match: (?<!\.)\b(return)\b
808 scope: keyword.control.flow.js
809 - match: (?<!\.)\b(?>if|else)\b
810 scope: keyword.control.conditional.js
811 - match: (?<!\.)\b(?>catch|finally|throw|try)\b
812 scope: keyword.control.trycatch.js
813 - match: (?<!\.)\b(?>break|continue|do|goto|while|case|default)\b
814 scope: keyword.control.loop.js
815 - match: (?<!\.)\b(?>enum|module|public|package|private|interface|protected)\b
816 scope: keyword.other.reserved.js
817 - match: (?<!\.)\b(debugger)\b
818 scope: keyword.other.js
822 (?<!\?)(?<!\?\s)(?=(?>
823 ((')((?>[^'\\]|\\.)*)('))|
824 ((")((?>[^"\\]|\\.)*)("))|
829 0: punctuation.separator.key-value.js
831 - include: literal-string
832 - match: '(?<!\.|\?|\?\s)([_$a-zA-Z][$\w]*)\s*(:)'
833 scope: constant.other.object.key.js
835 1: string.unquoted.label.js
836 2: punctuation.separator.key-value.js
837 literal-language-constant:
838 - match: (?<!\.)\b(true)\b
839 scope: constant.language.boolean.true.js
840 - match: (?<!\.)\b(false)\b
841 scope: constant.language.boolean.false.js
842 - match: (?<!\.)\b(null)\b
843 scope: constant.language.null.js
844 - match: (?<!\.)\b(undefined)\b
845 scope: constant.language.undefined.js
846 - match: (?<!\.)\b(NaN)\b
847 scope: constant.language.nan.js
848 literal-language-variable:
849 - match: (?<!(?<!\.\.)\.)\b(arguments)\b
850 scope: variable.language.arguments.js
851 - match: (?<!(?<!\.\.)\.)\b(super)\b
852 scope: variable.language.super.js
853 - match: (?<!(?<!\.\.)\.)\b(this)\b
854 scope: variable.language.this.js
855 - match: (?<!(?<!\.\.)\.)\b(self)\b
856 scope: variable.language.self.js
857 - match: (?<=\.)(__proto__)\b
858 scope: variable.language.proto.js
859 - match: (?<=\.)(constructor)\b
860 scope: variable.language.constructor.js
861 - match: (?<=\.)(prototype)\b
862 scope: variable.language.prototype.js
870 ((')((?>[^'\\]|\\.)*)('))|
871 ((")((?>[^"\\]|\\.)*)("))|
872 (([_$a-zA-Z][$\w]*|\d+))
874 (?=\s*(\((?>(?>[^()]+)|\g<-1>)*\))(?>\s|/\*.*\*/)*\{)
878 3: keyword.generator.asterisk.js
880 5: punctuation.definition.string.begin.js
881 6: entity.name.function.js
882 7: punctuation.definition.string.end.js
884 9: punctuation.definition.string.begin.js
885 10: entity.name.function.js
886 11: punctuation.definition.string.end.js
887 12: string.unquoted.js
888 13: entity.name.function.js
890 - meta_scope: meta.method.js
893 - include: function-declaration-parameters
898 ([_$a-zA-Z][$\w]*|\d+)\s*
899 (?=(\((?>(?>[^()]+)|\g<-1>)*\))(?>\s|/\*.*\*/)*\{)
902 2: storage.type.accessor.js
903 3: entity.name.accessor.js
905 - meta_scope: meta.accessor.js
908 - include: function-declaration-parameters
914 ([_$a-zA-Z][$\w]*)\s*
916 scope: meta.function-call.static.without-arguments.js
918 1: variable.other.class.js
919 2: keyword.operator.accessor.js
920 3: variable.function.js
921 4: meta.group.braces.round.function.arguments.js
926 ([_$a-zA-Z][$\w]*)\s*
928 scope: meta.function-call.static.with-arguments.js
930 1: variable.other.class.js
931 2: keyword.operator.accessor.js
932 3: variable.function.js
936 ([_$a-zA-Z][$\w]*)\s*
938 scope: meta.function-call.method.without-arguments.js
940 1: variable.function.js
941 2: meta.group.braces.round.function.arguments.js
945 ([_$a-zA-Z][$\w]*)\s*
947 scope: meta.function-call.method.with-arguments.js
949 1: variable.function.js
951 - match: (?<!\.)\b(?>import|export|default|from|as)\b
952 scope: keyword.operator.module.js
954 - match: '(?i)(?:\B[-+]|\b)0x[0-9a-f]*\.(\B|\b[0-9]+)'
955 scope: invalid.illegal.numeric.hex.js
956 - match: '(?:\B[-+]|\b)0[0-9]+\.(\B|\b[0-9]+)'
957 scope: invalid.illegal.numeric.octal.js
966 \B\.[0-9]+| # e.g. .999
967 \b[0-9]+(\.[0-9]*)? # e.g. 999.999, 999. or 999
968 )(e[-+]?[0-9]+)? # e.g. e+123, E-123
970 scope: constant.numeric.js
971 - match: '(?:\B[-+]|\b)(Infinity)\b'
972 scope: constant.language.infinity.js
974 - match: (?<!\.)\b(?>delete|instanceof|in|new|of|typeof|void|with)\b
975 scope: keyword.operator.js
978 !(?!=)| # logical-not right-to-left right
979 && | # logical-and left-to-right both
980 \|\| # logical-or left-to-right both
981 scope: keyword.operator.logical.js
984 =(?!=) # assignment right-to-left both
985 scope: keyword.operator.assignment.js
988 %= | # assignment right-to-left both
989 &= | # assignment right-to-left both
990 \*= | # assignment right-to-left both
991 \+= | # assignment right-to-left both
992 -= | # assignment right-to-left both
993 /= | # assignment right-to-left both
994 \^= | # assignment right-to-left both
995 \|= | # assignment right-to-left both
996 <<= | # assignment right-to-left both
997 >>= | # assignment right-to-left both
998 >>>= # assignment right-to-left both
999 scope: keyword.operator.assignment.augmented.js
1002 ~ | # bitwise-not right-to-left right
1003 << | # bitwise-shift left-to-right both
1004 >>> | # bitwise-shift left-to-right both
1005 >> | # bitwise-shift left-to-right both
1006 & | # bitwise-and left-to-right both
1007 \^ | # bitwise-xor left-to-right both
1008 \| # bitwise-or left-to-right both
1009 scope: keyword.operator.bitwise.js
1012 <= | # relational left-to-right both
1013 >= | # relational left-to-right both
1014 < | # relational left-to-right both
1015 > # relational left-to-right both
1016 scope: keyword.operator.relational.js
1019 === | # equality left-to-right both
1020 !== | # equality left-to-right both
1021 == | # equality left-to-right both
1022 != # equality left-to-right both
1023 scope: keyword.operator.comparison.js
1026 -- | # decrement n/a right-or-left
1027 \+\+ | # increment n/a right-or-left
1028 / | # division left-to-right both
1029 % | # modulus left-to-right both
1030 \* | # multiplication left-to-right both
1031 \+ | # addition left-to-right both
1032 - # subtraction left-to-right both
1033 scope: keyword.operator.arithmetic.js
1035 scope: keyword.operator.ternary.js
1036 - match: (?<!\.)\.\.\.
1037 scope: keyword.operator.spread.js
1039 scope: keyword.operator.accessor.js
1041 - match: '([_$a-zA-Z][$\w]*)(\.)(prototype)\s*(=)\s*'
1042 scope: meta.prototype.declaration.js
1044 1: entity.name.class.js
1045 2: keyword.operator.accessor.js
1046 3: variable.language.prototype.js
1047 4: keyword.operator.assignment.js
1048 - match: '([_$a-zA-Z][$\w]*)(\.)(prototype)\b'
1049 scope: meta.prototype.access.js
1051 1: entity.name.class.js
1052 2: keyword.operator.accessor.js
1053 3: variable.language.prototype.js
1054 literal-punctuation:
1056 scope: punctuation.terminator.statement.js
1058 scope: meta.delimiter.comma.js
1063 \.|\(|,|{|}|\[|;|<|>|<=|>=|==|!=|===|!==|\+|-|\*|%|\+\+|--|<<|>>|>>>|&|\||\^|!|~|&&|\|\||\?|:|=|\+=|-=|\*=|%=|<<=|>>=|>>>=|&=|\|=|\^=|/|/=|
1064 \Wnew|\Wdelete|\Wvoid|\Wtypeof|\Winstanceof|\Win|\Wdo|\Wreturn|\Wcase|\Wthrow|\Wyield|
1065 ^new|^delete|^void|^typeof|^instanceof|^in|^do|^return|^case|^throw|^yield|^
1070 1: punctuation.definition.string.begin.js
1072 - meta_scope: string.regexp.js
1073 - match: "(/)([gimy]*)"
1075 1: punctuation.definition.string.end.js
1078 - include: scope:source.regexp.js
1082 0: punctuation.definition.string.begin.js
1084 - meta_scope: string.quoted.js
1087 1: punctuation.definition.string.end.js
1088 2: invalid.illegal.newline.js
1090 - include: string-content
1092 - match: (?<!\.)\b(switch)\b
1094 1: keyword.control.switch.js
1096 - meta_scope: meta.switch.js
1099 0: meta.brace.curly.end.js
1102 - include: round-brackets
1105 0: meta.brace.curly.begin.js
1109 - match: (?<!\.)\b(case|default)\b
1111 1: keyword.control.switch.js
1115 - include: expression
1117 literal-template-string:
1120 0: string.interpolated.js keyword.other.template.begin.js
1124 0: string.interpolated.js keyword.other.template.end.js
1126 - include: string-content
1128 scope: constant.character.escape.js
1131 0: keyword.other.substitution.begin.js
1135 0: keyword.other.substitution.end.js
1137 - include: expression
1139 scope: string.interpolated.js
1141 - match: '_*?[A-Z][_$\dA-Z]*\b'
1142 scope: variable.other.constant.js
1143 - match: '\b([A-Z][$\w]*)\s*(\.)([_$a-zA-Z][$\w]*)'
1144 scope: meta.property.class.js
1146 1: variable.other.class.js
1147 2: keyword.operator.accessor.js
1148 3: variable.other.property.static.js
1149 - match: '(?<!\.)([_$a-zA-Z][$\w]*)\s*(?=[\[\.])'
1150 scope: variable.other.object.js
1152 1: variable.other.object.js
1153 - match: '(?<=\.)\s*([_$a-zA-Z][$\w]*)'
1154 scope: meta.property.object.js
1156 1: variable.other.property.js
1157 - match: '[_$a-zA-Z][$\w]*'
1158 scope: variable.other.readwrite.js
1160 - match: '^([<]{7})\s(.+)$'
1162 1: invalid.illegal.conflict-marker.merge-into.js
1163 2: invalid.illegal.string.js
1164 - match: "^([=|]{7})$"
1166 1: invalid.illegal.conflict-marker.separator.js
1167 - match: '^([>]{7})\s(.+)$'
1169 1: invalid.illegal.conflict-marker.other-commit.js
1170 2: invalid.illegal.string.js
1174 0: meta.brace.round.begin.js
1176 - meta_scope: meta.group.braces.round.js
1179 0: meta.brace.round.end.js
1181 - include: expression
1185 0: meta.brace.square.begin.js
1187 - meta_scope: meta.group.braces.square.js
1190 0: meta.brace.square.end.js
1192 - include: expression
1195 scope: constant.character.escape.newline.js
1196 - match: '\\([1-7][0-7]{0,2}|[0-7]{2,3}|[bfnrtv0''"\\]|x\h{2}|u\{\h+\}|u\h{4})'
1197 scope: constant.character.escape.js
1199 - match: (?<!\.)\b(injectGlobal|keyframes)\s*(`)
1201 1: variable.function.tagged-template.js
1202 2: punctuation.definition.string.template.begin.js
1204 - meta_scope: meta.styled-components.js
1205 - meta_content_scope: source.css.embedded.js
1208 0: punctuation.definition.string.template.end.js
1210 - include: scope:source.js.css
1211 - match: '(?<!\.)\b(styled)(\.)([_$a-zA-Z][$\w]*)\s*(`)'
1213 1: variable.other.object.js
1214 2: punctuation.accessor.js
1215 3: variable.function.tagged-template.js
1216 4: punctuation.definition.string.template.begin.js
1218 - meta_scope: meta.styled-components.js
1219 - meta_content_scope: source.css.embedded.js
1222 0: punctuation.definition.string.template.end.js
1224 - include: scope:source.js.css
1225 - match: '(?<!\.)\b(styled)\s*(?=(\((?>(?>[^()]+)|\g<-1>)*\))\s*`)'
1227 1: meta.function-call.with-arguments.js variable.function.js
1229 - meta_scope: meta.styled-components.js
1232 1: meta.function-call.with-arguments.js variable.function.js
1236 0: punctuation.definition.group.begin.js
1238 - meta_scope: meta.function-call.with-arguments.js meta.group.js
1241 0: punctuation.definition.group.end.js
1243 - include: expression
1246 0: punctuation.definition.string.template.begin.js
1248 - meta_content_scope: source.css.embedded.js
1251 0: punctuation.definition.string.template.end.js
1253 - include: scope:source.js.css
1255 - match: (?<!\.)\b(Array|ArrayBuffer|Boolean|DataView|Date|Float32Array|Float64Array|Function|Infinity|Int16Array|Int32Array|Int8Array|JSON|Map|Math|NaN|Number|Object|Promise|Proxy|Reflect|RegExp|Set|String|Symbol|System|TypeError|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|WeakMap|WeakSet)\b
1256 scope: support.class.builtin.js
1257 - match: (?<!\.)\b((?>Eval|Range|Reference|Syntax|Type|URI)?Error)\b
1258 scope: support.class.error.js
1259 - match: \b(?>Buffer)\b
1260 scope: support.class.node.js
1262 - match: (?<!\.)\b(constructor|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|escape|eval|hasOwnProperty|isFinite|isNaN|isPrototypeOf|parseFloat|parseInt|propertyIsEnumerable|toLocaleString|toString|unescape|valueOf)\b
1263 scope: support.function.builtin.js
1264 - match: (?<!\.)\b(clearImmediate|clearInterval|clearTimeout|require|setImmediate|setInterval|setTimeout)\b
1265 scope: support.function.node.js
1266 - match: (?<!\.)\b(?>document|window)\b
1267 scope: support.type.object.dom.js
1268 - match: (?<!\.)\b(?>global|GLOBAL|root|__dirname|__filename)\b
1269 scope: support.type.object.node.js
1270 - match: (?<!\.)\b(console)(?:(\.)(assert|count|dir|error|group|groupCollapsed|groupEnd|info|log|profile|profileEnd|table|time|timeEnd|trace|warn))?\b
1272 1: support.type.object.console.js
1273 2: keyword.operator.accessor.js
1274 3: support.function.console.js
1275 - match: (?<!\.)\b(process)(?:(\.)(?:(arch|argv|config|env|execArgv|execPath|exitCode|mainModule|pid|platform|stderr|stdin|stdout|title|version|versions)|(abort|chdir|cwd|exit|getgid|getgroups|getuid|hrtime|initgroups|kill|memoryUsage|nextTick|setgid|setgroups|setuid|umask|uptime)))?\b
1277 1: support.type.object.process.js
1278 2: keyword.operator.accessor.js
1279 3: support.type.object.process.js
1280 4: support.function.process.js
1281 - match: (?<!\.)\b(exports|module)(?:(\.)(children|exports|filename|id|loaded|parent))?\b
1283 1: support.type.object.module.js
1284 2: keyword.operator.accessor.js
1285 3: support.type.object.module.js
1288 - meta_scope: meta.tag.mustache.js
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list