Skip to content

Commit

Permalink
Support sagemath language (#5649)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eloitor authored Jan 23, 2023
1 parent 361a834 commit 7e191f5
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
| ron || || |
| ruby |||| `solargraph` |
| rust |||| `rust-analyzer` |
| sage ||| | |
| scala || || `metals` |
| scheme || | | |
| scss || | | `vscode-css-language-server` |
Expand Down
10 changes: 10 additions & 0 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2109,3 +2109,13 @@ formatter = { command = "dhall" , args = ["format"] }
[[grammar]]
name = "dhall"
source = { git = "https://github.com/jbellerb/tree-sitter-dhall", rev = "affb6ee38d629c9296749767ab832d69bb0d9ea8" }

[[language]]
name = "sage"
scope = "source.sage"
file-types = ["sage"]
injection-regex = "sage"
roots = []
comment-token = "#"
indent = { tab-width = 4, unit = " " }
grammar = "python"
1 change: 1 addition & 0 deletions runtime/queries/sage/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
; inherits: python
2 changes: 2 additions & 0 deletions runtime/queries/sage/injections.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))
1 change: 1 addition & 0 deletions runtime/queries/sage/textobjects.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
; inherits: python

0 comments on commit 7e191f5

Please sign in to comment.