aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Run ‘go fmt’Thomas Voss 2023-10-212-3/+4
|
* Add a few tests for the parserThomas Voss 2023-10-211-0/+62
|
* Comment parser.goThomas Voss 2023-10-211-2/+20
|
* Add tests for the formatterThomas Voss 2023-10-211-0/+258
|
* Escape runes in class namesThomas Voss 2023-10-211-8/+12
| | | | | | I cannot think of a single situation where you’d ever end up in this situation, and I also am not even sure if it’s even meant to be legal HTML. Better to be on the safe side I guess.
* Add tests for reader.goThomas Voss 2023-10-201-0/+178
|
* Document reader.goThomas Voss 2023-10-201-0/+18
|
* Improve the implementation of peekRune()Thomas Voss 2023-10-201-17/+12
|
* Make use of the ‘./...’ wildcardThomas Voss 2023-10-201-1/+1
|
* Add a target to run testsThomas Voss 2023-10-201-0/+3
|
* Mark Makefile as being POSIX compliantThomas Voss 2023-10-201-0/+2
|
* Fix printing classes and attrsv1.0.2jturtle 2023-10-201-1/+1
| | | | | | | | | Well well well, here we are again. Iterate over the `nClasses` list instead of every attr after printing the classes. With all due respect, you should consider writing a test suite to catch silly errors like this.
* Don’t use lambdas, and just use a damn for-loopThomas Voss 2023-10-101-9/+10
|
* Detail how to have empty non-void tagsv1.0.1Thomas Voss 2023-10-021-1/+10
|
* Remove whitespaceThomas Voss 2023-10-021-2/+0
|
* Fix class/attribute mixup bugjturtle 2023-10-021-1/+4
| | | | | | | | | | | | | | | | | | There's a bug in the current version of GSP where an element like this: p .class attribute="value" {-} would be transpiled as this: <p class="value" attribute="value"></p> The `classes` slice in `func printAttrs` (`formatter.go`, line 50) was the cause. I fixed it by making a deep copy of the `attrs` slice. I'm not a Go programmer, there might be a nicer way to make a deep copy of a slice. But it does, indeed, work. P.S. thanks for making this, writing HTML by hand is now slightly less painful!
* Bump manual datev1.0.0Thomas Voss 2023-09-111-1/+1
| | | | I forgot to update the date last time I changed this.
* Minor refactoringThomas Voss 2023-09-111-15/+10
|
* Correct errors in READMEThomas Voss 2023-09-111-4/+4
|
* Run ‘go fmt’Thomas Voss 2023-09-111-9/+9
|
* Add the ‘=’ node for whitespace trimmingThomas Voss 2023-09-113-53/+38
|
* Wrap example code to 73 columnsThomas Voss 2023-09-111-8/+9
| | | | | | Normally I wrap code and stuff to 80 columns, but I’m going to use 73 for the examples in the manuals as manual page readers are probably indenting stuff quite a bit.
* Fix invalid markup in exampleThomas Voss 2023-09-111-4/+7
|
* Add the ‘>’ node modifierThomas Voss 2023-09-113-29/+65
|
* Specify constant typeThomas Voss 2023-09-111-1/+1
|
* Fix a panicThomas Voss 2023-09-101-1/+1
|
* Remove useless escapesThomas Voss 2023-09-101-3/+3
|
* Support multiple root-level nodesThomas Voss 2023-09-101-10/+19
|
* Add a ‘Documentation’ section to the READMEThomas Voss 2023-09-101-0/+5
|
* Remove all XML supportThomas Voss 2023-09-106-150/+42
|
* Add the ‘-x’ command-line optionThomas Voss 2023-09-104-3/+26
|
* Rework some of the formatting- and parsing codeThomas Voss 2023-09-103-86/+95
|
* Write the initial gsp(5) manualThomas Voss 2023-09-101-1/+267
|
* Bump dateThomas Voss 2023-09-101-1/+1
|
* Mention XML in the READMEThomas Voss 2023-09-101-0/+5
|
* Update manual with XML informationThomas Voss 2023-09-101-4/+13
|
* Add a skeleton for an initial gsp(5)Thomas Voss 2023-09-091-0/+11
|
* Install gsp(5) manualThomas Voss 2023-09-091-1/+4
|
* Remove slashThomas Voss 2023-09-091-1/+1
|
* Add an initial manual page for gsp(1)Thomas Voss 2023-09-091-0/+41
|
* Add new doctype syntax to READMEThomas Voss 2023-09-091-0/+2
|
* Add primitive support for doctypes and XMLThomas Voss 2023-09-092-16/+104
|
* Fix bug when key has no valueThomas Voss 2023-09-091-1/+1
|
* Add a READMEThomas Voss 2023-09-091-0/+53
|
* Fix MakefileThomas Voss 2023-09-091-1/+6
|
* Support reading from stdin and multiple inputsThomas Voss 2023-09-091-7/+21
|
* Run ‘go fmt’Thomas Voss 2023-09-092-15/+18
|
* Consistent code styleThomas Voss 2023-09-091-1/+1
|
* Add a MakefileThomas Voss 2023-09-091-0/+13
|
* Simplify ‘die()’Thomas Voss 2023-09-091-6/+2
|