oils-for-unix/oils.vim
View on GitHub ↗ ★ 17 Vim Script
Vim syntax highlighting for Oils
6 mentions on Hacker News by 2 people: 1 story, 5 comments · first 2025-06-13 · latest 2025-06-13
20082026
-
…[ within expressions like a[i] is highlighted (currently Normal, but you can make it any color - https://github.com/oils-for-unix/oils.vim/blob/main/syntax/l... ) Again I recommend trying it. Verify what you think the bugs are. I think you…
comment by chubot · 2025-06-13 · in Three Algorithms for YSH Syntax Highlighting -
…also allows MULTIPLE here docs, and I claim that ZERO syntax highlighters handle it correctly - https://github.com/oils-for-unix/oils.vim/blob/main/demo/bad... (YSH removes here docs in favor of Python-like multi-line strings) --- But the…
comment by chubot · 2025-06-13 · in Three Algorithms for YSH Syntax Highlighting -
Nested is also demonstrated by stage 2 fixing the "nested double quotes bug". Screenshots: https://github.com/oils-for-unix/oils.vim/blob/main/doc/stag... Stage 1 is non-recursive, but stage 2 is recursive.
comment by chubot · 2025-06-13 · in Three Algorithms for YSH Syntax Highlighting -
…nesting It absolutely nests! Vim's model has recursion, and it works perfectly. Some details here: https://github.com/oils-for-unix/oils.vim/blob/main/doc/stag... This highlighter is extremely accurate, and I would call it correct. I list…
comment by chubot · 2025-06-13 · in Three Algorithms for YSH Syntax Highlighting -
…I just noticed this link doesn’t work on my iPad because of the captcha – this is the same content: https://github.com/oils-for-unix/oils.vim/blob/main/doc/algo...
comment by chubot · 2025-06-13 · in Three Algorithms for YSH Syntax Highlighting