Code with syntax highlighting applied
https://xoxo-media.sfo2.cdn.digitaloceanspaces.com/media_attachments/files/112/418/730/109/637/300/original/f4ad1a6ecd970d83.png
I built a language server for my forth-like that supports semantic highlighting.
It can distinguish between immediate (comptime) words, normal words, assembly words, and numbers, and immediate words can hack into the token parsing to signal different semantic values.
For example, here I define a new immediate word “\”, which parses until the end of the line using the magic number “3” to mark the parsed text as a comment, and then discards the parsed result.
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.