Initial commit: Klammertext source distribution
Curated source subset assembled by klammertext-dev's doc/make_dist.sh: the Klammermachine (mac), the Standard Klammer Set (sks), the commands (com), editor plugins and install guides (doc), a test subset (tst), and lib/bin placeholders. Builds with 'make -C com'. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
45
doc/edit/sublime/example.kt
Normal file
45
doc/edit/sublime/example.kt
Normal file
@@ -0,0 +1,45 @@
|
||||
# This is a line comment — removed to end of line, in the "ignored" color.
|
||||
# The # marker is a different color from the text it removes.
|
||||
|
||||
#[ This is a block comment. It can span lines,
|
||||
and #[ nest ]# like this. ]#
|
||||
|
||||
# --- Klammer applications (@) : opening @name vs. closing name@ / bare @ ---
|
||||
|
||||
@i italic @ @b bold @ @tt monospace @
|
||||
|
||||
@sup 2 | 3 @ # positional arguments separated by |
|
||||
@sup-2-3 # the abbreviated form colors only the name
|
||||
|
||||
@link https://example.com :text a labelled link @
|
||||
|
||||
A named close is handy for long arguments: @section a long body here section@
|
||||
|
||||
# --- Klammer definitions (@@) and system commands (@@@) ---
|
||||
|
||||
@@mdlh : @i Material Definition Language Handbook @ @@
|
||||
@@heading.html : *arg* @@
|
||||
@@@target html | HTML output | options @@@
|
||||
|
||||
# --- Escapes: a caret makes the next character literal (shown as plain text) ---
|
||||
|
||||
^@ and ^# and ^^ and ^| are literal, not delimiters.
|
||||
|
||||
# --- Literal klammer: @code ... code@ interior is verbatim ---
|
||||
# The stray @ and # below are NOT delimiters inside a literal span:
|
||||
|
||||
@code
|
||||
if (a @ b) { return "# not a comment"; }
|
||||
code@
|
||||
|
||||
# --- Whitespace operators (#- #+ #/) are not removals; shown as plain text ---
|
||||
|
||||
tight#-spacing gap#+3here break#/2line
|
||||
|
||||
# --- A deliberate MISMATCH: put the cursor on @open or close@ to see it turn ---
|
||||
# --- red with a message (the names disagree); a matched pair boxes normally. ---
|
||||
|
||||
@open some content close@
|
||||
|
||||
## Everything from this line to the end of the file is removed (## = to EOF).
|
||||
this trailing line is greyed out as removed text
|
||||
Reference in New Issue
Block a user