Open haraldschilly opened 7 years ago
With over 100 languages already, odds are that GAP is very similar to an existing language (e.g., PASCAL?).
The best way to go forward seems to take the python highlighting and add all those gap keywords and see how that works out. So, what's the full list of keywords and what's a good (long and involved) gap source code to test with?
See Manuel Martins's GAP syntax highlighting for CodeMirror: https://github.com/mcmartins/CodeMirror
cc @markuspf @mcmartins
The version currently in my own repo is outdated. The latest version of the gap mode for CodeMirror is distributed with the JupyterKernel: https://github.com/gap-packages/JupyterKernel/tree/master/etc/gap-mode
Thanks for the heads-up @mcmartins.
At this point, GAP syntax highlighting seems to work when using GAP's JupyterKernel in Plain Jupyter, but not in JupyterLab or CoCalc-Jupyter.
probably create a syntax highlighting rule file for codemirror, or make this an upstream task at the gap project