Skip to content

Commit f7806bc

Browse files
authored
Change highlighting of variables with underscore (#182)
* Change highlighting of variables with underscore * use Python 3.4 on Travis * use xvfb service on Travis
1 parent 69fdc72 commit f7806bc

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

.travis.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,22 @@ env:
33
- PACKAGE="Elixir" # Package name
44
- SUBLIME_TEXT_VERSION="3"
55

6+
services:
7+
# enable gui, see https://docs.travis-ci.com/user/gui-and-headless-browsers
8+
- xvfb
9+
610
# mutliple os matrix
711
# https://docs.travis-ci.com/user/multi-os/#Python-example-(unsupported-languages)
812
matrix:
913
include:
1014
- os: linux
1115
language: python
12-
python: 3.3
16+
python: 3.4
1317
- os: osx
1418
language: generic
1519

1620
before_install:
1721
- curl -OL https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/travis.sh
18-
# enable gui, see https://docs.travis-ci.com/user/gui-and-headless-browsers
19-
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
20-
export DISPLAY=:99.0;
21-
sh -e /etc/init.d/xvfb start;
22-
fi
2322

2423
install:
2524
# bootstrap the testing environment

Syntaxes/Elixir.tmLanguage

+12
Original file line numberDiff line numberDiff line change
@@ -1328,6 +1328,18 @@
13281328
</dict>
13291329
</array>
13301330
</dict>
1331+
<dict>
1332+
<key>match</key>
1333+
<string>\b_([\w]+[?!]?)</string>
1334+
<key>name</key>
1335+
<string>comment.unused.elixir</string>
1336+
</dict>
1337+
<dict>
1338+
<key>match</key>
1339+
<string>\b_\b</string>
1340+
<key>name</key>
1341+
<string>comment.wildcard.elixir</string>
1342+
</dict>
13311343
<dict>
13321344
<key>comment</key>
13331345
<string>

0 commit comments

Comments
 (0)