summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-10-28 02:46:54 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-10-28 02:46:54 +0200
commit35ddd7bfcb38ca2fedd81afbe944e5275132949c (patch)
treea065f6ef5b8eb5c59186382d2e15102ce4083cff /src
parentc7b75ad485b689230b6a78bdb7b95940b2e1e657 (diff)
Fix for GSP v2
Diffstat (limited to 'src')
-rw-r--r--src/srp/gsp/abbr.m4.gsp2
-rw-r--r--src/srp/gsp/folds.scm.gsp6
-rw-r--r--src/srp/gsp/grammar.js.gsp16
-rw-r--r--src/srp/gsp/highlights.scm.gsp16
-rw-r--r--src/srp/gsp/pug.pug.gsp16
5 files changed, 28 insertions, 28 deletions
diff --git a/src/srp/gsp/abbr.m4.gsp b/src/srp/gsp/abbr.m4.gsp
index 48626e0..99ac1d7 100644
--- a/src/srp/gsp/abbr.m4.gsp
+++ b/src/srp/gsp/abbr.m4.gsp
@@ -1 +1 @@
-@span .fn{-⁨m4_define⁩}(⁨m4_abbr⁩, `\@abbr .@span .fn{-⁨m4_translit⁩}(@span .var{-$1}, A-Z, a-z) {-@span .var{-$1}\}')
+@span .fn {-⁨m4_define⁩}(⁨m4_abbr⁩, `\@abbr .@span .fn {-⁨m4_translit⁩}(@span .var {-$1}, A-Z, a-z) {-@span .var {-$1}\}')
diff --git a/src/srp/gsp/folds.scm.gsp b/src/srp/gsp/folds.scm.gsp
index 8c7cb61..fb8ce45 100644
--- a/src/srp/gsp/folds.scm.gsp
+++ b/src/srp/gsp/folds.scm.gsp
@@ -1,4 +1,4 @@
[
- (@span .fn{-node})
- (@span .fn{-attribute_list})
-] @span .var{-\@fold}
+ (@span .fn {-node})
+ (@span .fn {-attribute_list})
+] @span .var {-\@fold}
diff --git a/src/srp/gsp/grammar.js.gsp b/src/srp/gsp/grammar.js.gsp
index 278fff0..7a06e7f 100644
--- a/src/srp/gsp/grammar.js.gsp
+++ b/src/srp/gsp/grammar.js.gsp
@@ -1,12 +1,12 @@
{
- @span .var{-node}: @span .var{-$} => @span .fn{-seq}(
- @span .fn{-optional}('>'),
- @span .var{-$.node_name},
- @span .fn{-optional}(@span .var{-$.attribute_list}),
- @span .str{-'{'},
- @span .fn{-optional}(@span .var{-$.node_body}),
- @span .str{-'\}'},
+ @span .var {-node}: @span .var {-$} => @span .fn {-seq}(
+ @span .fn {-optional}('>'),
+ @span .var {-$.node_name},
+ @span .fn {-optional}(@span .var {-$.attribute_list}),
+ @span .str {-'{'},
+ @span .fn {-optional}(@span .var {-$.node_body}),
+ @span .str {-'\}'},
),
- @span .var{-node_name}: @span .var{-$} => @span .str{-/[a-zA-Z:_][a-zA-Z0-9:_\\-​.]*​/},
+ @span .var {-node_name}: @span .var {-$} => @span .str {-/[a-zA-Z:_][a-zA-Z0-9:_\\-​.]*​/},
\}
diff --git a/src/srp/gsp/highlights.scm.gsp b/src/srp/gsp/highlights.scm.gsp
index 37f445e..6deeb8a 100644
--- a/src/srp/gsp/highlights.scm.gsp
+++ b/src/srp/gsp/highlights.scm.gsp
@@ -1,9 +1,9 @@
-[@span .str{-">"} @span .str{-"-"} @span .str{-"="} @span .str{-"\@"}] @span .var{-\@operator}
-[@span .str{-"{"} @span .str{-"\}"}] @span .var{-\@tag.delimiter}
-(@span .fn{-node_name}) @span .var{-\@tag}
+[@span .str {-">"} @span .str {-"-"} @span .str {-"="} @span .str {-"\@"}] @span .var {-\@operator}
+[@span .str {-"{"} @span .str {-"\}"}] @span .var {-\@tag.delimiter}
+(@span .fn {-node_name}) @span .var {-\@tag}
[
- (@span .fn{-attribute_name})
- (@span .fn{-class_shorthand})
- (@span .fn{-id_shorthand})
-] @span .var{-\@tag.attribute}
-(@span .fn{-attribute_value}) @span .var{-\@string}
+ (@span .fn {-attribute_name})
+ (@span .fn {-class_shorthand})
+ (@span .fn {-id_shorthand})
+] @span .var {-\@tag.attribute}
+(@span .fn {-attribute_value}) @span .var {-\@string}
diff --git a/src/srp/gsp/pug.pug.gsp b/src/srp/gsp/pug.pug.gsp
index ac3e026..de816e3 100644
--- a/src/srp/gsp/pug.pug.gsp
+++ b/src/srp/gsp/pug.pug.gsp
@@ -1,8 +1,8 @@
-@span .pug-node{-div}
- @span .pug-node{-p}
- @span .pug-cont{-|} Hello world! This is a
- @span .pug-cont{-|} multiline paragraph.
- @span .pug-node{-ul}
- @span .pug-node{-li} foo
- @span .pug-node{-li} bar
- @span .pug-node{-li} baz
+@span .pug-node {-div}
+ @span .pug-node {-p}
+ @span .pug-cont {-|} Hello world! This is a
+ @span .pug-cont {-|} multiline paragraph.
+ @span .pug-node {-ul}
+ @span .pug-node {-li} foo
+ @span .pug-node {-li} bar
+ @span .pug-node {-li} baz