codethesaurus / codethesaur.us

A polyglot developer reference tool to compare programming language concepts side-by-side! Great for learning new languages or using for reference.
https://codethesaur.us
GNU Affero General Public License v3.0
288 stars 170 forks source link

[Bug] For a language without a Pygments lexer, the program crashes #746

Closed geekygirlsarah closed 4 weeks ago

geekygirlsarah commented 3 months ago

Expected Behavior

A language that may not have a style coloring lexer would either not use one or use some default of another language.

Actual Behavior

CT crashes.

image

Steps to Reproduce the Problem

  1. Run PR #744 locally
  2. Do a reference of CLIPS with the Rules concept
  3. Crash will happen

Additional Info

I'm not sure what the right answer is or if there's a "default" lexer (I didn't see one but didn't look too hard). Maybe no formatting if there's no lexer?

mrryanjohnston commented 2 months ago

@geekygirlsarah you may be able to get away with using Common LISP since CLIPS has a LISP-like syntax