Skip to content

Commit a2c7800

Browse files
author
Raul E Rangel
committed
Merge remote-tracking branch 'upstream/master' into fix-1830
2 parents 8fa2986 + 759d6ee commit a2c7800

File tree

262 files changed

+38287
-7324
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

262 files changed

+38287
-7324
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Syntax Highlighting problem
3+
about: Create a bug report for mis-highlighted code in one of the default languages.
4+
5+
---
6+
7+
<!--
8+
Please search existing issues to avoid creating duplicates. Also, if you
9+
are able, follow the directions at https://github.com/sublimehq/Packages#installation
10+
to check the latest version of this language highlighting.
11+
12+
If the problem persists, please begin the issue title with the language in
13+
square brackets, e.g. "[XML] Tags with underscores"
14+
-->
15+
16+
- Sublime Version:
17+
- OS Version:
18+
19+
<!-- Replace 'lang' below with the GitHub language identifier for your problem (e.g. 'html' or 'java') -->
20+
21+
``` lang
22+
# Minimum code snippet to demonstrate the issue
23+
```
24+
25+
<!-- If you believe it is helpful, include a screenshot of the code in your Sublime Text window. -->
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Go to Symbol problem
3+
about: Create a bug report for file indexing in one of the default languages.
4+
5+
---
6+
7+
<!--
8+
Please search existing issues to avoid creating duplicates. Also, if you
9+
are able, follow the directions at https://github.com/sublimehq/Packages#installation
10+
to check the latest version of this language's behavior.
11+
12+
If the problem persists, please begin the issue title with the language in
13+
square brackets, e.g. "[Java] Can't go-to-symbol on classes"
14+
-->
15+
16+
- Sublime Version:
17+
- OS Version:
18+
19+
## Expected behavior
20+
21+
## Actual behavior
22+
23+
## Steps to reproduce
24+
25+
1.
26+
2.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Snippet, Completion, Indentation, or Build problem
3+
about: Suggest improvements for one of the default language support files.
4+
5+
---
6+
7+
<!--
8+
Please search existing issues to avoid creating duplicates. Also, if you
9+
are able, follow the directions at https://github.com/sublimehq/Packages#installation
10+
to check the latest version of this language highlighting.
11+
12+
If the problem persists, please begin the issue title with the language in
13+
square brackets, e.g. "[PHP] Snippet for echo includes the wrong tab stops"
14+
-->
15+
16+
- Sublime Version:
17+
- OS Version:
18+
19+
## Expected behavior
20+
21+
## Actual behavior
22+
23+
## Steps to reproduce
24+
25+
1.
26+
2.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Small update to Syntax definition
3+
about: I have made easily-reviewable changes to a `.sublime-syntax` file.
4+
title: [PackageName] update_summary
5+
6+
---
7+
8+
- [ ] My commit messages start with the package name in square brackets, e.g. `[XML]`.
9+
- [ ] I have included new or enhanced [syntax tests][] to cover the changes.
10+
11+
[syntax tests]: https://www.sublimetext.com/docs/3/syntax.html#testing
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: Large update to Syntax definition
3+
about: I have made significant changes to a `.sublime-syntax` file.
4+
title: [PackageName] update_summary
5+
6+
---
7+
8+
- [ ] My commit messages start with the package name in square brackets, e.g. `[XML]`.
9+
- [ ] I have included new or enhanced [syntax tests][] to cover the changes.
10+
- [ ] I have included a performance comparison below:
11+
12+
13+
## Performance
14+
<!--
15+
Run "Tools > Build With... > Syntax Tests - Performance" and put the
16+
relevant output in the blocks below, both with and without your changes.
17+
-->
18+
19+
### Before changes
20+
21+
```
22+
Syntax "Packages/PackageName/lang.sublime-syntax" took an average of 10.0ms over 10 runs
23+
Syntax "Packages/PackageName/lang-types.sublime-syntax" took an average of 2.0ms over 10 runs
24+
```
25+
26+
### After changes
27+
28+
```
29+
Syntax "Packages/PackageName/lang.sublime-syntax" took an average of 10.2ms over 10 runs
30+
Syntax "Packages/PackageName/lang-types.sublime-syntax" took an average of 2.0ms over 10 runs
31+
```
32+
33+
[syntax tests]: https://www.sublimetext.com/docs/3/syntax.html#testing
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: Update to supporting files
3+
about: My changes do not include any `.sublime-syntax` file.
4+
title: [PackageName] update_summary
5+
6+
---
7+
8+
- [ ] My commit messages start with the package name in square brackets, e.g. `[XML]`.

.travis.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1+
dist: bionic
12
sudo: false
23
language: c
34
branches:
45
except:
56
- /^v[0-9]{4}$/
7+
before_install:
8+
- sudo apt-get -y install libgl1-mesa-glx
9+
- sudo apt-get -y install libglu1-mesa
610
install:
7-
- wget --content-disposition https://download.sublimetext.com/latest/dev/linux/x64/syntax_tests
8-
- tar xf "$(ls st3_syntax_tests_build_*_x64.tar.bz2)"
9-
- mv st3_syntax_tests/syntax_tests ./
10-
- rm -R st3_syntax_tests*
11+
- wget --content-disposition https://download.sublimetext.com/st_syntax_tests_build_4052_x64.tar.bz2
12+
- tar xf "$(ls st_syntax_tests_build_*_x64.tar.bz2)"
13+
- mv st_syntax_tests/syntax_tests ./
14+
- rm -R st_syntax_tests*
1115
before_script:
1216
- mkdir -p Data/Packages/
1317
- find . -maxdepth 1 -mindepth 1 -type d -not -name 'Data' -exec mv '{}' Data/Packages/ \;

ActionScript/ActionScript.sublime-syntax

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ contexts:
5454
captures:
5555
0: punctuation.definition.comment.actionscript.2
5656
pop: true
57+
- match: ^\s*(\*)(?!/)
58+
captures:
59+
1: punctuation.definition.comment.actionscript.2
5760
- match: (//).*$\n?
5861
scope: comment.line.double-slash.actionscript.2
5962
captures:

ActionScript/syntax_test_as.as

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/* SYNTAX TEST "Packages/ActionScript/ActionScript.sublime-syntax" */
2+
3+
/**
4+
*
5+
/* ^ comment.block.actionscript.2 punctuation.definition.comment.actionscript.2 */

Batch File/Batch File.sublime-syntax

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,14 @@ contexts:
2727
- include: escaped_characters
2828
- include: variables
2929
- include: commands
30-
- match: \b(?i)(?:goto|call|exit)\b
30+
- match: \b(?i)exit\b
3131
scope: keyword.control.statement.dosbatch
32+
- match: \b(?i)(goto|call)\b(?:\s*(:)?(?:(eof)|(\w+)))?
33+
captures:
34+
1: keyword.control.statement.dosbatch
35+
2: punctuation.separator.dosbatch
36+
3: keyword.control.flow.return.dosbatch
37+
4: meta.function-call.dosbatch variable.function.dosbatch
3238
- match: \b(?i)(if)\s+(?:(not)\s+)?(exist|defined|errorlevel|cmdextversion)\b
3339
captures:
3440
1: keyword.control.conditional.dosbatch
@@ -232,6 +238,11 @@ contexts:
232238
scope: variable.parameter.dosbatch
233239
captures:
234240
1: punctuation.definition.variable.dosbatch
241+
- match: (?i)(%)errorlevel(%)
242+
scope: variable.language.dosbatch
243+
captures:
244+
1: punctuation.definition.variable.begin.dosbatch
245+
2: punctuation.definition.variable.end.dosbatch
235246
- include: variable
236247
- include: variable_delayed_expansion
237248

0 commit comments

Comments
 (0)