WHAT THE FLUFF, did I seriously just write a (dead-simple) #uxntal syntax highli...

@rl_dane@polymaths.social

WHAT THE FLUFF, did I seriously just write a (dead-simple) #uxntal syntax highlighting script in #bash?!? πŸ˜‚

https://codeberg.org/rldane/scripts/src/branch/main/tallight

All it does right now is put comments in blue and UPPERCASE strings of three or more characters in bold using tput.

I started writing it in #POSIX script, but POSIX's read doesn't have a way to read a character at a time. ;)

Just FYI, on this ten-year-old thinkpad, it took 16 seconds to process a 639KiB (concatenated-together) source code file. So it'll probably be decent enough for most purposes.

#Perl would've been better, but I'm quite rusty at it. ☺️

#uxn #tal #scripting #shell #ShellScript #ShellScripts #ShellScripting #YakShaving