The Bjolang grammar is a resource, so bjo publish copies it
The module reads grammars/bjolang from beside its src/, found from its own DLL. Declared with (resources "grammars"), bjo publish copies it to the same place relative to the module, and a published program highlights Bjolang. Version 0.1.1. 🤖 Generated with [ECA](https://eca.dev) (anthropic/claude-opus-5-5) Co-Authored-By: eca-agent <git@eca.dev>
This commit is contained in:
parent
6bb44bc05f
commit
e51b7170a9
2 changed files with 9 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
(package
|
(package
|
||||||
(name (textmate-bjolang))
|
(name (textmate-bjolang))
|
||||||
(version "0.1.0")
|
(version "0.1.1")
|
||||||
(description "Syntax highlighting for Bjolang: VS Code's TextMate grammars and themes, through TextMateSharp, as (text xml) nodes.")
|
(description "Syntax highlighting for Bjolang: VS Code's TextMate grammars and themes, through TextMateSharp, as (text xml) nodes.")
|
||||||
(license "MPL-2.0")
|
(license "MPL-2.0")
|
||||||
|
|
||||||
|
|
@ -12,5 +12,9 @@
|
||||||
(packages
|
(packages
|
||||||
(nuget (id "TextMateSharp.Grammars") (version "[2.0.4,2.1)")))
|
(nuget (id "TextMateSharp.Grammars") (version "[2.0.4,2.1)")))
|
||||||
|
|
||||||
|
;; Bjolang's own grammar, read at run time from beside src/. Declared so
|
||||||
|
;; that bjo publish copies it along with the module.
|
||||||
|
(resources "grammars")
|
||||||
|
|
||||||
;; A library: there is no src/main.bjo.
|
;; A library: there is no src/main.bjo.
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -36,8 +36,10 @@
|
||||||
;; - TextMateSharp takes a theme's own rules before the ones it includes,
|
;; - TextMateSharp takes a theme's own rules before the ones it includes,
|
||||||
;; however specific: Light+ colours `this` as a variable, where VS Code
|
;; however specific: Light+ colours `this` as a variable, where VS Code
|
||||||
;; gives it the included theme's blue. Both styles here follow TextMateSharp.
|
;; gives it the included theme's blue. Both styles here follow TextMateSharp.
|
||||||
;; - The Bjolang grammar is found beside the DLL. A program copied somewhere
|
;; - The Bjolang grammar is found beside the DLL. The manifest declares
|
||||||
;; without grammars/ — what a bjo publish would do — has no bjolang.
|
;; grammars/ as a resource, so bjo publish copies it to the same place
|
||||||
|
;; relative to the module; a program copied by hand without it has no
|
||||||
|
;; bjolang.
|
||||||
;; - A highlighter tokenizes one line at a time, under a lock: TextMateSharp
|
;; - A highlighter tokenizes one line at a time, under a lock: TextMateSharp
|
||||||
;; compiles a grammar's rules as it meets them and says nothing about
|
;; compiles a grammar's rules as it meets them and says nothing about
|
||||||
;; threads. Parallel work wants a highlighter per thread.
|
;; threads. Parallel work wants a highlighter per thread.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue