Skip to content

Commit 90ce805

Browse files
committed
Rewrite syntax for ST4
requires ST4152+
1 parent 19f86e1 commit 90ce805

21 files changed

+1016
-730
lines changed

.gitattributes

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# git
2+
.github/ export-ignore
3+
.git export-ignore
4+
.gitattributes export-ignore
5+
.gitignore export-ignore
6+
# development
7+
tests/ export-ignore
8+
# other
9+
preview.png export-ignore
10+
preview.postcss export-ignore
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: CI Syntax Tests
2+
3+
on:
4+
push:
5+
push:
6+
- '**'
7+
tags-ignore:
8+
- '**'
9+
paths:
10+
- '.github/workflows/ci-syntax-tests.yml'
11+
- '**.sublime-syntax'
12+
- '**/syntax_test_*'
13+
- '**.tmPreferences'
14+
pull_request:
15+
branches:
16+
- '**'
17+
paths:
18+
- '.github/workflows/ci-syntax-tests.yml'
19+
- '**.sublime-syntax'
20+
- '**/syntax_test_*'
21+
- '**.tmPreferences'
22+
workflow_dispatch:
23+
24+
jobs:
25+
syntax_tests:
26+
name: Sublime Text ${{ matrix.build }}
27+
runs-on: ubuntu-latest
28+
timeout-minutes: 15 # default is 6 hours!
29+
strategy:
30+
matrix:
31+
include:
32+
- build: 4152
33+
default_packages: v4152
34+
- build: 4169
35+
default_packages: v4169
36+
- build: 4180
37+
default_packages: v4180
38+
- build: latest
39+
default_packages: master
40+
steps:
41+
- name: Checkout Default Packages
42+
uses: actions/checkout@v4
43+
with:
44+
repository: sublimehq/Packages
45+
ref: ${{ matrix.default_packages }}
46+
path: st_syntax_tests/Data/Packages
47+
48+
- name: Delete default package tests
49+
run: |
50+
find st_syntax_tests/Data/Packages/*/ -type f -name 'syntax_test*' -exec rm -v '{}' \;
51+
52+
- name: Checkout PostCSS
53+
uses: actions/checkout@v4
54+
with:
55+
path: st_syntax_tests/Data/Packages/PostCSS
56+
57+
- name: Run Syntax Tests for Sublime Text ${{ matrix.build }}
58+
run: |
59+
if [[ "${{ matrix.build }}" == "latest" ]]; then
60+
wget -O st_syntax_tests.tar.xz https://download.sublimetext.com/latest/dev/linux/x64/syntax_tests
61+
else
62+
wget -O st_syntax_tests.tar.xz https://download.sublimetext.com/st_syntax_tests_build_${{ matrix.build }}_x64.tar.xz
63+
fi
64+
tar xf st_syntax_tests.tar.xz
65+
cd st_syntax_tests
66+
./syntax_tests

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Development
2+
.venv/
3+
*.sublime-project
4+
*.sublime-workspace
5+
# OS
6+
.DS_Store

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.8

Comments.tmPreferences

Lines changed: 0 additions & 30 deletions
This file was deleted.

Completion Rules.tmPreferences

Lines changed: 0 additions & 17 deletions
This file was deleted.

Completions/CSS-Properties.sublime-completions

Lines changed: 0 additions & 181 deletions
This file was deleted.

0 commit comments

Comments
 (0)