Skip to content

Commit 9f0b115

Browse files
committed
refactor for linugist package
1 parent c313b54 commit 9f0b115

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

scripts/generate.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if [[ ${GITHUB_REF_NAME} != "" ]]; then
66
VERSION="$GITHUB_REF_NAME"
77
fi
88

9-
sed "s/<GRAMMAR_VERSION>/$VERSION/g" rascript.tmLanguage.json > gen/rascript.tmLanguage.json
9+
sed "s/_GRAMMAR_VERSION_/$VERSION/g" syntaxes/rascript.tmLanguage.json > gen/rascript.tmLanguage.json
1010
plistutil -f xml -i gen/rascript.tmLanguage.json -o gen/rascript.tmLanguage
11-
sed "s/<GRAMMAR_VERSION>/$VERSION/g" RAScript.xml > gen/RAScript.xml
12-
sed "s/<GRAMMAR_VERSION>/$VERSION/g" rascript.js > gen/rascript.js
11+
sed "s/_GRAMMAR_VERSION_/$VERSION/g" syntaxes/RAScript.xml > gen/RAScript.xml
12+
sed "s/_GRAMMAR_VERSION_/$VERSION/g" syntaxes/rascript.js > gen/rascript.js

RAScript.xml renamed to syntaxes/RAScript.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<WordsStyle name="DARK-HEADER-MINIMUMVERSION-VALUE" styleID="41" fgColor="B5CEA8" />
6363
</LexerType>
6464
</LexerStyles>
65-
<RAScript version="<GRAMMAR_VERSION>">
65+
<RAScript version="_GRAMMAR_VERSION_">
6666
<Token name="Variables" type="NORMAL" regex="([a-zA-Z_][\w]*)[\t ]*" lightStyle="1" darkStyle="2" />
6767
<Token name="Controls" type="NORMAL" regex="\b(if|else|for|in|return)\b" lightStyle="3" darkStyle="4" />
6868
<Token name="This" type="NORMAL" regex="\b(this)\b" lightStyle="5" darkStyle="6" />

rascript.js renamed to syntaxes/rascript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Language: RAScript
33
Author: Joshua Raphael
44
Description: Syntax grammar for RAScript, a RetroAchievements.org DSL
55
Category: syntax
6-
Version: <GRAMMAR_VERSION>
6+
Version: _GRAMMAR_VERSION_
77
*/
88

99
function ImportantWordRegex() {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
3-
"$version": "<GRAMMAR_VERSION>",
3+
"grammar_version": "_GRAMMAR_VERSION_",
44
"name": "RAScript",
55
"patterns": [
66
{

0 commit comments

Comments
 (0)