Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions .unacceptablelanguageignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
assets/swift-docc-render
src/utilities/utilities.ts
src/tasks/SwiftProcess.ts
syntaxes/swift-gyb.tmLanguage.json
test/unit-tests/syntaxes/swift.tmLanguage.json
test/unit-tests/syntaxes/MagicPython.tmLanguage.json
2 changes: 2 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@
!assets/documentation-webview/**
!assets/swift-docc-render/**
!node_modules/@vscode/codicons/**
!swift-gyb.language-configuration.json
!syntaxes/**
268 changes: 267 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 25 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,28 @@
"filenamePatterns": [
"*.tutorial"
]
},
{
"id": "swift-gyb",
"aliases": [
"Swift GYB"
],
"extensions": [
".swift.gyb"
],
"configuration": "./swift-gyb.language-configuration.json"
}
],
"grammars": [
{
"language": "swift-gyb",
"scopeName": "source.swift.gyb",
"path": "./syntaxes/swift-gyb.tmLanguage.json",
"embeddedLanguages": {
"meta.embedded.block.gyb": "python",
"meta.embedded.control.begin.gyb": "python",
"meta.embedded.expression.gyb": "python"
}
}
],
"snippets": [
Expand Down Expand Up @@ -1677,7 +1699,8 @@
"pretest": "npm run compile-tests",
"soundness": "scripts/soundness.sh",
"check-package-json": "tsx ./scripts/check_package_json.ts",
"test": "vscode-test",
"test": "vscode-test && npm run grammar-test",
"grammar-test": "vscode-tmgrammar-test \"test/unit-tests/**/*.test.swift.gyb\" -g test/unit-tests/syntaxes/swift.tmLanguage.json -g test/unit-tests/syntaxes/MagicPython.tmLanguage.json",
"integration-test": "npm test -- --label integrationTests",
"unit-test": "npm test -- --label unitTests",
"coverage": "npm test -- --coverage",
Expand Down Expand Up @@ -1735,6 +1758,7 @@
"sinon-chai": "^3.7.0",
"source-map-support": "^0.5.21",
"strip-ansi": "^6.0.1",
"vscode-tmgrammar-test": "^0.1.3",
"svgo": "^4.0.0",
"tsx": "^4.20.3",
"typescript": "^5.8.3"
Expand Down
17 changes: 17 additions & 0 deletions swift-gyb.language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"brackets": [["{", "}"]],
"autoClosingPairs": [
["%{", "}%"],
["${", "}"]
],
"surroundingPairs": [
["%{", "}%"],
["${", "}"]
],
"folding": {
"markers": {
"start": "^\\s*(?:%\\{|%[^\\{].*?:)",
"end": "^\\s*(?:\\}%|%\\s*end\\b)"
}
}
}
Loading