Skip to content

Commit

Permalink
Rewrite syntax for ST4
Browse files Browse the repository at this point in the history
requires ST4152+
  • Loading branch information
deathaxe committed Oct 3, 2024
1 parent 19f86e1 commit edbcbec
Show file tree
Hide file tree
Showing 19 changed files with 865 additions and 730 deletions.
10 changes: 10 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# git
.github/ export-ignore
.git export-ignore
.gitattributes export-ignore
.gitignore export-ignore
# development
tests/ export-ignore
# other
preview.png export-ignore
preview.postcss export-ignore
66 changes: 66 additions & 0 deletions .github/workflows/ci-syntax-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: CI Syntax Tests

on:
push:
push:
- '**'
tags-ignore:
- '**'
paths:
- '.github/workflows/ci-syntax-tests.yml'
- '**.sublime-syntax'
- '**/syntax_test_*'
- '**.tmPreferences'
pull_request:
branches:
- '**'
paths:
- '.github/workflows/ci-syntax-tests.yml'
- '**.sublime-syntax'
- '**/syntax_test_*'
- '**.tmPreferences'
workflow_dispatch:

jobs:
syntax_tests:
name: Sublime Text ${{ matrix.build }}
runs-on: ubuntu-latest
timeout-minutes: 15 # default is 6 hours!
strategy:
matrix:
include:
- build: 4152
default_packages: v4152
- build: 4169
default_packages: v4169
- build: 4180
default_packages: v4180
- build: latest
default_packages: master
steps:
- name: Checkout Default Packages
uses: actions/checkout@v4
with:
repository: sublimehq/Packages
ref: ${{ matrix.default_packages }}
path: st_syntax_tests/Data/Packages

- name: Delete default package tests
run: |
find st_syntax_tests/Data/Packages/*/ -type f -name 'syntax_test*' -exec rm -v '{}' \;
- name: Checkout PostCSS
uses: actions/checkout@v4
with:
path: st_syntax_tests/Data/Packages/PostCSS

- name: Run Syntax Tests for Sublime Text ${{ matrix.build }}
run: |
if [[ "${{ matrix.build }}" == "latest" ]]; then
wget -O st_syntax_tests.tar.xz https://download.sublimetext.com/latest/dev/linux/x64/syntax_tests
else
wget -O st_syntax_tests.tar.xz https://download.sublimetext.com/st_syntax_tests_build_${{ matrix.build }}_x64.tar.xz
fi
tar xf st_syntax_tests.tar.xz
cd st_syntax_tests
./syntax_tests
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Development
.venv/
*.sublime-project
*.sublime-workspace
# OS
.DS_Store
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.8
30 changes: 0 additions & 30 deletions Comments.tmPreferences

This file was deleted.

17 changes: 0 additions & 17 deletions Completion Rules.tmPreferences

This file was deleted.

181 changes: 0 additions & 181 deletions Completions/CSS-Properties.sublime-completions

This file was deleted.

Loading

0 comments on commit edbcbec

Please sign in to comment.