sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.47k stars 487 forks source link

Define a Sage syntax highlighting #30501

Open slel opened 4 years ago

slel commented 4 years ago

This ticket is about defining a syntax highlighting mode aware of Sage's additions to Python syntax.

Related:

Component: user interface

Issue created by migration from https://trac.sagemath.org/ticket/30501

slel commented 4 years ago

Description changed:

--- 
+++ 
@@ -4,3 +4,6 @@
 Related:

 - #30500: Meta-ticket: document configuring IDEs and text editors
+- #19972: Fix doc syntax highlighting
+- #12451: Syntax highlighting for notebook debugger
+- #3953: make it so foo?? shows the source code syntax highlighted
slel commented 4 years ago

Description changed:

--- 
+++ 
@@ -3,6 +3,7 @@

 Related:

+- #30760: Implement parser for Sage
 - #30500: Meta-ticket: document configuring IDEs and text editors
 - #19972: Fix doc syntax highlighting
 - #12451: Syntax highlighting for notebook debugger
jhpalmieri commented 4 years ago

Description changed:

--- 
+++ 
@@ -8,3 +8,4 @@
 - #19972: Fix doc syntax highlighting
 - #12451: Syntax highlighting for notebook debugger
 - #3953: make it so foo?? shows the source code syntax highlighted
+- #27528: clean up documentation highlighting
jhpalmieri commented 3 years ago
comment:4

Can you explain the goal of this ticket?

havarddj commented 2 days ago

Editors which support tree-sitter can use tree-sitter-sage. For example, it should work with emacs (tested), neovim, helix, atom and zed.