Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5c186d1

Browse files
authored
Add nil highlight (#71)
1 parentd1685a4 commit5c186d1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

‎API.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
format: using built-in markdown
2+
format: using built-in markdown
3+
format: discount not found, using markdown
14
#acid.connections
25
low-level connection handler
36

‎lua/acid/middlewares/virtualtext.lua‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ virtualtext.middleware = function(config)
5454
table.insert(vt, {data.out:gsub("\n","\\n"),"String"})
5555
elseifdata.value~=nilanddata.value~="nil"then
5656
table.insert(vt, {data.value,"Function"})
57+
elseifdata.value=="nil"then
58+
table.insert(vt, {"nil","Delimiter"})
5759
end
5860

5961
if#vt>0then

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp