feat: custom languages syntax (WIP)

This commit is contained in:
MihailRis
2025-04-13 00:19:38 +03:00
parent 4360cd408b
commit 5253be6c56
18 changed files with 278 additions and 88 deletions
+1
View File
@@ -197,6 +197,7 @@ function open_file_in_editor(filename, line, mutable)
editor.scroll = 0
editor.text = source
editor.focused = true
editor.syntax = file.ext(filename)
if line then
time.post_runnable(function()
editor.caret = editor:linePos(line)