summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-11-13 22:03:17 +0000
committerubq323 <ubq323@ubq323.website>2024-11-13 22:03:17 +0000
commit16e9f4ef0ab0ad51a7a05fd98ee1870c81b20a73 (patch)
tree9db82260e113c3564d5c396a88ae8d783fc0ea0f /init.lua
parentdfef0c0e5fad890c6c65110e3850ece586614215 (diff)
alter extension parsingHEADtrunk
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 21b5313..801f9d2 100644
--- a/init.lua
+++ b/init.lua
@@ -26,7 +26,11 @@ local function mode_code(S)
text = text .. line
end
end
- S:emit(highlight(text, lang))
+ if lang then
+ S:emit(highlight(text, lang))
+ else
+ S:emit(T.pre(text))
+ end
end
local function mode_list(S)