Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Java] Rewrite Syntax #2654

Merged
merged 452 commits into from
Nov 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
452 commits
Select commit Hold shift + click to select a range
c7f78a7
[Java] Add method invocation tests
deathaxe Sep 27, 2020
e37a20c
[Java] Rename instantiation context
deathaxe Sep 27, 2020
91269bc
[Java] Update accessor_dot variable
deathaxe Sep 27, 2020
191112d
[Java] Remove variable-namespace context
deathaxe Sep 27, 2020
e329bf5
[Java] Nondeterministic local variable declaration
deathaxe Sep 28, 2020
a971147
[Java] Reorganize declarations as class-members
deathaxe Sep 29, 2020
6d04f72
[Java] Reorganize declarations in sections
deathaxe Sep 29, 2020
6a99409
[Java] Set away from branch contexts
deathaxe Sep 30, 2020
7ff5869
[Java] Rename statements contexts
deathaxe Sep 30, 2020
d2df96a
[Java] Update comments
deathaxe Oct 1, 2020
82f18c7
[Java] Scope all commas separator.comma
deathaxe Oct 1, 2020
b4e839b
[Java] Rename parens -> group
deathaxe Oct 1, 2020
533b3a5
[Java] Fix array-only or object types in generics
deathaxe Oct 1, 2020
a901200
[Java] Fix exception list
deathaxe Oct 1, 2020
ef71a11
[Java] Reorganize object-type
deathaxe Oct 1, 2020
7670668
[Java] Add cast expression contexts
deathaxe Oct 2, 2020
99fc90c
[Java] Rename variable branch contexts
deathaxe Oct 2, 2020
d2f8903
[Java] Refactor reference-type context
deathaxe Oct 3, 2020
6bd75a9
[Java] Add variables to improve readability
deathaxe Oct 3, 2020
b01868f
[Java] Move blocks section next to groups
deathaxe Oct 3, 2020
682e1b6
[Java] Rename generic type contexts
deathaxe Oct 3, 2020
fd3d0d0
[Java] Rename generic type contexts part 2
deathaxe Oct 3, 2020
9ee9486
[Java] Improve incomplete type-parameter handling
deathaxe Oct 3, 2020
a61e21f
[Java] Extend generic local declaration tests
deathaxe Oct 3, 2020
9814779
[Java] Add more ambiguity tests
deathaxe Oct 3, 2020
39ed8b8
[Java] annotation context to annotations
deathaxe Oct 4, 2020
175662d
[Java] Improve annotation performance
deathaxe Oct 4, 2020
e9bb8bf
[Java] Tweak annotation boundaries
deathaxe Oct 5, 2020
e569d0c
[Java] Reorganize expression contexts
deathaxe Oct 5, 2020
6fb307f
[Java] Declaration vs. expressions performance tweak
deathaxe Oct 5, 2020
0203886
[Java] Use declarations in for statements
deathaxe Oct 5, 2020
9ed9e98
[Java] Use declarations in try statements
deathaxe Oct 5, 2020
7d48030
[Java] Simplify variable declaration identifier
deathaxe Oct 5, 2020
00df346
[Java] Tweak variable identifier performance
deathaxe Oct 6, 2020
c90b532
[Java] Add some incomplete for statement tests
deathaxe Oct 6, 2020
7b98843
[Java] Reorganize assignment expressions
deathaxe Oct 6, 2020
646252b
[Java] Remove declaration-assignment branch
deathaxe Oct 6, 2020
5dcc3a6
[Java] Simplify method default context
deathaxe Oct 6, 2020
f6c03fa
[Java] Move stray-group from blocks to statements
deathaxe Oct 6, 2020
86c78c2
[Java] Merge declaration sections
deathaxe Oct 6, 2020
7e42d54
[Java] Move member-declarations
deathaxe Oct 6, 2020
d653994
[Java] Rename member-statements
deathaxe Oct 6, 2020
95afd56
[Java] Merge class-body into class-body-block-common
deathaxe Oct 6, 2020
8f27f88
[Java] Tweak field declaration contexts
deathaxe Oct 7, 2020
620d025
[Java] Add some field declaration tests
deathaxe Oct 7, 2020
301f2c9
[Java] Tweak method declaration contexts
deathaxe Oct 7, 2020
687c404
[Java] Rename class/enum/interface modifier contexts
deathaxe Oct 7, 2020
0ef36ca
[Java] Tweak package declaration
deathaxe Oct 7, 2020
438bcfb
[Java] Rename expect-type-reference -> maybe-...
deathaxe Oct 7, 2020
a74176c
[Java] Make more use of group-body
deathaxe Oct 8, 2020
2f1f8ab
[Java] Make more use of block-body
deathaxe Oct 8, 2020
e443518
[Java] Rework instantiation-type
deathaxe Oct 8, 2020
62790b2
[Java] Tweak for parameters
deathaxe Oct 8, 2020
4101c0b
[Java] Tweak module declaration
deathaxe Oct 8, 2020
ed537ce
[Java] Add tests to verify lowercase constructor
deathaxe Oct 8, 2020
2066894
[Java] Fix hexadecimal floats
deathaxe Oct 8, 2020
6aa6da0
[Java] Reorganize/Cleanup "Incomplete" Tests
deathaxe Oct 9, 2020
285f461
[Java] Recover from incomplete expressions and unclosed groups
deathaxe Oct 9, 2020
a81679c
[Java] Rename illegal-type-parameters
deathaxe Oct 9, 2020
07799de
[Java] Tweak expression-terminator
deathaxe Oct 9, 2020
f4b499b
[Java] Tweak annotation contexts
deathaxe Oct 11, 2020
0f00f6d
[Java] Tweak enum-constant contexts
deathaxe Oct 11, 2020
4ca6575
[Java] More permissive case enum constant matching
deathaxe Oct 11, 2020
923a07c
[Java] Move method reference expressions tests
deathaxe Oct 11, 2020
baa80c3
[Java] Move while statements tests
deathaxe Oct 11, 2020
56c54d5
[Java] Move for statements tests
deathaxe Oct 11, 2020
d63befa
[Java] Move instance creation expressions tests
deathaxe Oct 11, 2020
020ac4b
[Java] Move type cast expressions tests
deathaxe Oct 11, 2020
82e5413
[Java] Move incomplete method declarations tests
deathaxe Oct 11, 2020
857f5a7
[Java] Tweak local variable declarations tests
deathaxe Oct 11, 2020
a9d3db2
[Java] Add labeled statement tests
deathaxe Oct 11, 2020
58ef501
[Java] Add assert statements tests
deathaxe Oct 11, 2020
91f3a25
[Java] Fix word separators
deathaxe Oct 11, 2020
93449f1
[Java] Tweak identifier's word separator
deathaxe Oct 12, 2020
6f3a04d
[Java] Give variables branch up immediately
deathaxe Oct 12, 2020
81f4d6e
[Java] Use entity.name.tag in JavaDoc
deathaxe Nov 8, 2020
c4bf776
[Java] Rename wildcards scope
deathaxe Nov 8, 2020
8083f5a
[Java] Scope extends/implements as storage.modifier
deathaxe Nov 13, 2020
cf0e7cb
[Java] Scope invalid extends/implements unexpected-keyword
deathaxe Nov 13, 2020
4d83abf
[Java] Use keyword.declaration.function
deathaxe Nov 14, 2020
2dd0c1f
[Java] Exclude prototype from meta-only contexts
deathaxe Nov 14, 2020
04117cc
[Java] Fix JavaDoc Base Syntax
deathaxe Nov 16, 2020
d7c569d
[Java] Simplify groups patterns
deathaxe Nov 16, 2020
48d61c7
[Java] Remove obsolete reserved-pop contexts
deathaxe Nov 21, 2020
7d1ba4c
[Java] Rename enum-constant to constant
deathaxe Nov 21, 2020
14fc46c
[Java] Tweak case label statements
deathaxe Nov 21, 2020
8f6ce30
[Java] Fix tmPreferences indentation
deathaxe Nov 21, 2020
6259b66
[Java] Tweak illegal highlighting in catch groups
deathaxe Nov 21, 2020
4029ece
[Java] Tweak anonymous function tests
deathaxe Nov 21, 2020
29ddc86
[Java] Rename meta.method to meta.function
deathaxe Nov 21, 2020
1c2ed25
[Java] Remove Symbol List - Method
deathaxe Nov 21, 2020
6421dd9
[Java] Tweak line comment punctuation
deathaxe Nov 21, 2020
07dc8c1
[Java] Move test files into tests directory
deathaxe Nov 21, 2020
4c06895
[Java] Move JavaDoc tests to the top of the file
deathaxe Nov 21, 2020
48de66f
[Java] Reduce Java/JavaDoc coupling by using embed
deathaxe Nov 21, 2020
5d6958a
[Java] Rename documentation comment scopes
deathaxe Nov 21, 2020
1b4ade7
[Java] Make use of HTML prototypes
deathaxe Nov 21, 2020
e6162a6
[Java] Simplify JavaDoc tag names
deathaxe Nov 21, 2020
d4ae741
[Java] Remove meta.block-tag.javadoc
deathaxe Nov 21, 2020
c83efc9
[Java] Rework inline javadoc tags
deathaxe Nov 21, 2020
3e647ab
[Java] Add various JavaDoc tests
deathaxe Nov 21, 2020
7b98e0b
[Java] Re-add meta.tag.block.javadoc
deathaxe Nov 21, 2020
59f2ce1
[Java] Add javadoc-inline-tag-end context
deathaxe Nov 21, 2020
aacfcb8
[Java] Add some notes about JavaDoc
deathaxe Nov 21, 2020
2c52ca4
[Java] Fix syntax name
deathaxe Nov 21, 2020
e8fdd84
[Java] Add java syntax highlighting to {@code ...}
deathaxe Nov 21, 2020
80473a8
Merge branch 'master' into pr/java/rewrite-syntax
deathaxe Nov 21, 2020
5b594f8
[Java] Remove obsolete syntax_test_java from root
deathaxe Nov 22, 2020
fc74b2e
[Java] Add description to Java (for JavaDoc)
deathaxe Nov 22, 2020
2d10adb
[Java] Simplify JavaDoc asterisk
deathaxe Nov 27, 2020
c154aec
[Java] Remove expressions from declaration branches
deathaxe Nov 27, 2020
d2c00e0
[Java] Tweak branch lookaheads
deathaxe Nov 27, 2020
caa983e
[Java] Improve array item access meta scopes
deathaxe Nov 29, 2020
9668341
[Java] Named string body contexts
deathaxe Nov 29, 2020
959f1ed
[Java] Enable angle bracket matching
deathaxe Nov 29, 2020
103ae13
[Java] Named ternary expression contexts
deathaxe Nov 29, 2020
4b0f2b9
[Java] Tweak member declaration contexts
deathaxe Dec 2, 2020
6e23566
[Java] Add local variable declaration section
deathaxe Dec 4, 2020
171abf2
[Java] Rework lambda parameters accordingly
deathaxe Dec 5, 2020
a40717c
[Java] Express optional character of variadic contexts
deathaxe Dec 5, 2020
de23e39
[Java] Rename support.class to storage.type.class
deathaxe Dec 5, 2020
5967cce
[Java] Add named comment body contexts
deathaxe Dec 6, 2020
a720b63
[Java] Add named receiver identifier end context
deathaxe Dec 6, 2020
1e5dd02
[Java] Tweak array modifiers after identifiers
deathaxe Dec 8, 2020
881b81c
[Java] Add named accessor contexts
deathaxe Dec 8, 2020
c92d372
[Java] Tweak object types childs
deathaxe Dec 8, 2020
f8a65c2
[Java] Remove expression from member branches
deathaxe Dec 11, 2020
2fecb3c
[Java] Add support for multi-line qualifiers in code blocks
deathaxe Dec 12, 2020
ab6e777
[Java] Improve illegal type parameters
deathaxe Dec 12, 2020
af47266
[Java] Reorganize primitive and var types
deathaxe Dec 12, 2020
d4dd5b4
[Java] Rename additional bounds operator
deathaxe Dec 12, 2020
019ecb4
[Java] Rename function reference context
deathaxe Dec 12, 2020
1213f7f
[Java] Rename _ variable
deathaxe Dec 12, 2020
c9fab41
[Java] Tweak expressions
deathaxe Dec 12, 2020
dfb8c1e
[Java] Use accessor variable
deathaxe Dec 12, 2020
a1bfdc0
[Java] Improve type comparison expressions
deathaxe Dec 12, 2020
c0aebe9
[Java] Refactor char and string literal contexts
deathaxe Dec 13, 2020
82ec346
[Java] Scope import as keyword.declaration.import
deathaxe Dec 13, 2020
cdf534d
[Java] Codestyle
deathaxe Dec 13, 2020
d2a2d00
[Java] Fix array modifier in incomplete expressions
deathaxe Dec 13, 2020
2fbd91d
[Java] Fix variable highlighting in embedded code
deathaxe Dec 14, 2020
52b3411
[Java] Rework Server Pages (JSP)
deathaxe Dec 13, 2020
20712f6
[Java] Tweak receiver end context
deathaxe Dec 15, 2020
caf748c
[Java] rename var scope to storage.type.variant
deathaxe Dec 16, 2020
a0f2bd4
[Java] Tweak variable declaration context names
deathaxe Dec 16, 2020
74a1ddd
[Java] Add specs reference for language literals
deathaxe Dec 16, 2020
44abbb3
[Java] Tweak code style
deathaxe Dec 17, 2020
68290cf
[Java] Rename contexts from ...-body-block to ...-block
deathaxe Dec 17, 2020
5114bc3
[Java] Remove block-body context
deathaxe Dec 17, 2020
18d7f5d
[Java] Remove group-body context
deathaxe Dec 17, 2020
1a775dc
[Java] Add named array dimensions and initializers
deathaxe Dec 17, 2020
c6f1888
[Java] Rename context tails from -content to -body
deathaxe Dec 17, 2020
a25b521
[Java] Tweak symbol list scopes
deathaxe Dec 17, 2020
c027706
[Java] Tweak illegal stray scope names
deathaxe Dec 17, 2020
75828f0
[Java] Refine meta.declaration
deathaxe Dec 18, 2020
a3fc0a6
[Java] Tweak context names
deathaxe Dec 18, 2020
bfc6ce9
[Java] Move variable declaration contexts
deathaxe Dec 18, 2020
2ebb650
[Java] Remove .readwrite from variable scopes
deathaxe Dec 18, 2020
794017b
[Java] Use constant.other in local variable declarations
deathaxe Dec 18, 2020
058978a
[Java] Tweak context names
deathaxe Dec 18, 2020
9a23a19
[Java] Fix JSP test cases
deathaxe Dec 18, 2020
fd2a75d
[LaTeX] Fix Java test cases
deathaxe Dec 18, 2020
15e6527
[Java] Enable completions in try with resource statements
deathaxe Dec 18, 2020
c7e9b6e
Revert "[Java] Add java syntax highlighting to {@code ...}"
deathaxe Jan 3, 2021
56daf3e
[Java] Fix block comment line start asterisks
deathaxe Jan 10, 2021
f2790d9
[Java] Rescope anonymous function declaration operator
deathaxe Jan 13, 2021
e0d5f28
[Java] Improve indentation rules
deathaxe Jan 14, 2021
4897e50
[Java] Simplify completion rules
deathaxe Jan 16, 2021
09d2220
Merge branch 'master' into pr/java/rewrite-syntax
deathaxe Mar 15, 2021
daebe29
[Java] Fix HTML integration
deathaxe Mar 15, 2021
cb35402
[Java] Update first line match pattern
deathaxe Mar 21, 2021
b912a3e
[Java] Make sure not to fail on JDK14 switch expressions
deathaxe Apr 1, 2021
7e749d1
[Java] Make sure not to fail on JDK14 instanceof patterns
deathaxe Apr 1, 2021
5a48606
[Java] Add support for JDK15's sealed classes/interfaces
deathaxe Apr 1, 2021
5a3c1a6
[Java] Add support for JDK16 record classes
deathaxe Apr 1, 2021
f68c6a3
[Java] Add support for compact constructors
deathaxe Apr 1, 2021
b72f71f
[Java] Merge class- and enum-modifiers
deathaxe Apr 2, 2021
cc8f8e6
[Java] Improve readability of keyword variable lists
deathaxe Apr 2, 2021
4b83ce3
[Java] Avoid duplicate look ahead patterns
deathaxe Apr 2, 2021
381fd32
[Java] Exclude prototypes from immediately popping contexts
deathaxe Apr 2, 2021
4add9f8
[Java] Use simple id pattern where safe
deathaxe Apr 2, 2021
6ead02b
[Java] Rename sealed class/interface tests
deathaxe Apr 2, 2021
66094e4
[Java] Add support for yield-statements
deathaxe Apr 2, 2021
3e3ef6e
[Java] Refine case label meta scopes in arrow notation
deathaxe Apr 2, 2021
dfb9858
[Java] Split string literal contexts
deathaxe Apr 2, 2021
c2a71b7
[Java] Add dedicated literals context
deathaxe Apr 2, 2021
ca27134
[Java] Add number suffix variables
deathaxe Apr 2, 2021
c933f6c
[Java] More robust decimal point
deathaxe Apr 3, 2021
5f2c3e5
[Java] Rename accessor_dot to single_dot
deathaxe Apr 3, 2021
de01dbb
[Java] Reorganizes textblock contexts
deathaxe Apr 3, 2021
a3988c4
[Java] Reorganize tmPreferences
deathaxe Apr 4, 2021
eab7976
[Java] Add @interface and record to cancelCompletion
deathaxe Apr 4, 2021
db2fb70
[Java] Update completions
deathaxe Apr 4, 2021
fc5d26c
[Java] Tweak tests formatting
deathaxe Apr 4, 2021
b6101a0
[Java] Detailed builtin constants scopes
deathaxe Apr 4, 2021
0499e47
[Java] Avoid duplicate look ahead patterns part 2
deathaxe Apr 4, 2021
4f98a03
[Java] Exclude prototypes from immediately popping contexts part 2
deathaxe Apr 4, 2021
b802dbd
[Java] Tweak receiver branches
deathaxe Apr 4, 2021
6b6dea5
[Java] Ensure meta.path boundaries in export statements
deathaxe Apr 4, 2021
3348fc2
[Java] Rename meta.if scope
deathaxe Apr 5, 2021
5578abc
[Java] Rename meta.else scope
deathaxe Apr 5, 2021
e1a8435
[Java] Rename meta.switch scope
deathaxe Apr 5, 2021
6910f34
[Java] Rename meta.case scope
deathaxe Apr 5, 2021
b30a98e
[Java] Rename meta.while scope
deathaxe Apr 5, 2021
1fa735a
[Java] Rename meta.for scope
deathaxe Apr 5, 2021
736e1c8
[Java] Rename meta.assertion scope
deathaxe Apr 5, 2021
b938790
[Java] Rename meta.[break|continue|...] scope
deathaxe Apr 5, 2021
6b6c7fc
[Java] Rename meta.synchronized scope
deathaxe Apr 5, 2021
7920c1b
[Java] Rename meta.catch scope
deathaxe Apr 5, 2021
e745e09
[Java] Rename meta.finally scope
deathaxe Apr 5, 2021
64a6e73
[Java] Rename meta.try scope
deathaxe Apr 5, 2021
3061eff
[Java] Rename meta.typecast scope
deathaxe Apr 5, 2021
b469b7c
[Java] Rename ternary operator scopes
deathaxe Apr 8, 2021
46f7c94
Revert "[Java] Rename ternary operator scopes"
deathaxe Apr 11, 2021
be9ee5d
[Java] Highlight global/local function definitions
deathaxe Dec 13, 2020
5f67d74
[Java] Reduce boolean scope granularity
deathaxe Apr 25, 2021
5484e67
[Java] Reorganize embedded contexts in JSP
deathaxe Apr 25, 2021
07aeedd
[Java] Add jsp string interpolation in CSS/JS
deathaxe May 9, 2021
85f84dd
[Java] Rename all embedded Java scopes in JSP
deathaxe May 9, 2021
bee91ea
[Java] Fix meta.annotation.parameters boundaries
deathaxe Jun 11, 2021
4d219bf
[Java] Improve catch() expression
deathaxe Jun 11, 2021
d6df726
[Java] Use punctuation.section.generic
deathaxe Jun 11, 2021
b8df665
[Java] Fix meta.annotation boundaries
deathaxe Jun 13, 2021
46e8293
[Java] No class entity in static imports
deathaxe Jun 13, 2021
8781e5a
[Java] Exclude prototypes
deathaxe Jun 13, 2021
578436c
[Java] Improve emacs mode tag
deathaxe Jun 15, 2021
ddba682
[Java] Update java properties to sublime-syntax v2
deathaxe Jun 15, 2021
dd209dd
[Java] Scope file/page attributes in JSP as url
deathaxe Jun 27, 2021
2df456c
[Java] Fix indentation after block comments
deathaxe Aug 20, 2021
f515706
[Java] Add indentation tests with line comments
deathaxe Aug 21, 2021
24c64dd
Merge remote-tracking branch 'sublimehq/master' into pr/java/rewrite-…
deathaxe Aug 23, 2021
08241a6
[Java] Fix toggle html comments in embedded css/js tags in JSP
deathaxe Aug 23, 2021
518cd24
[Java] Scope arrow in switch statements separator
deathaxe Aug 25, 2021
4788702
[Java] Add shebang highlighting
deathaxe Aug 25, 2021
f738054
[Java] Add JSTL variable interpolation support
deathaxe Aug 25, 2021
e399bc2
[Java] Add file extension for Java Server Page Fragments
deathaxe Aug 25, 2021
a109df7
[Java] Highlight namespace part of html/xml-tags
deathaxe Aug 25, 2021
60e2ac2
[Java] Rename symbol list for fields
deathaxe Aug 26, 2021
6e43956
[Java] Exclude local imports from global symbol index
deathaxe Aug 26, 2021
12bb435
[Java] Tweak indentation rules comment
deathaxe Aug 28, 2021
0303dee
[Java] Fix highlighting issue with constant case label
deathaxe Sep 3, 2021
ed4ca81
[Java] Tweak case label end bailout
deathaxe Sep 3, 2021
93e33f6
[Java] Fix case constant labels with annotations
deathaxe Sep 4, 2021
4b709a4
[Java] Improve qualified constants parsing performance
deathaxe Sep 4, 2021
944fef4
[Java] Tweak qualified constants parsing contexts
deathaxe Sep 4, 2021
6dea18e
[Java] Remove obsolete prototype contexts
deathaxe Sep 4, 2021
ea2d74d
[Java] Tweak block comment patterns
deathaxe Sep 5, 2021
f6f6890
[Java] Restrict shebang highlighting to very first line
deathaxe Sep 5, 2021
053a2ce
[Java] Fix allowed method modifiers
deathaxe Oct 6, 2021
99a6231
Merge branch 'master' into pr/java/rewrite-syntax
deathaxe Oct 29, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions Java/CSS (for JSP).sublime-syntax
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
%YAML 1.2
---
###############################################################################
# This intermediate syntax is used by `HTML (JSP).sublime-syntax`
#
# It powers Java highlighting within JSP tags in embedded CSS.
#
# <style type="text/css">
# <%! ... %>
# <%= ... %>
# <% ... %>
# </style>
#
# The primary task is to add `jsp-embedded` context to CSS's prototype
# to highlight all the <% %> tags.
###############################################################################

scope: source.css.embedded.jsp
version: 2
hidden: true

extends: Packages/CSS/CSS.sublime-syntax

contexts:

prototype:
- meta_prepend: true
- include: HTML (JSP).sublime-syntax#jsp-embedded

string-content:
- meta_prepend: true
- include: HTML (JSP).sublime-syntax#jsp-interpolations
27 changes: 0 additions & 27 deletions Java/Comments - Properties.tmPreferences

This file was deleted.

27 changes: 27 additions & 0 deletions Java/Default.sublime-keymap
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[
// Auto-pair double quotes (also if followed by comma or semicolon)
// Example: key: |; -> key: "|";
{ "keys": ["\""], "command": "insert_snippet", "args": {"contents": "\"$0\""}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "source.java - string", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|\\}|>|,|:|;|\\+|$)", "match_all": true },
{ "key": "preceding_text", "operator": "not_regex_contains", "operand": "[\"a-zA-Z0-9_]$", "match_all": true },
{ "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.double - punctuation.definition.string.end", "match_all": true }
]
},

// Auto-pair double quotes (also if followed by comma or semicolon)
// Example: key: |; -> key: '|';
{ "keys": ["'"], "command": "insert_snippet", "args": {"contents": "'$0'"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "source.java - string", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|\\}|>|,|:|;|\\+|$)", "match_all": true },
{ "key": "preceding_text", "operator": "not_regex_contains", "operand": "['a-zA-Z0-9_]$", "match_all": true },
{ "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.double - punctuation.definition.string.end", "match_all": true }
]
},
]
Loading