diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2025-09-05 17:22:24 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-05 17:22:24 +0800 |
| commit | 0bafbe872b2f6cab2a4a6df9213ffc664eeee948 (patch) | |
| tree | 95f9a4ebb01a17b7f422a4b70d22a9eb4b4ca790 /runtime/syntax/python.vim | |
| parent | 9898327bd7206480ac0b324667ae9fb504941b4a (diff) | |
| download | rneovim-0bafbe872b2f6cab2a4a6df9213ffc664eeee948.tar.gz rneovim-0bafbe872b2f6cab2a4a6df9213ffc664eeee948.tar.bz2 rneovim-0bafbe872b2f6cab2a4a6df9213ffc664eeee948.zip | |
vim-patch:9.1.1732: filetype: .inc file detection can be improved (#35635)
Problem: filetype: .inc file detection can be improved
Solution: Update filetype detection for Pascal and BitBake code
(Martin Schwan).
Fix the detection of .inc files containing Pascal and BitBake code:
- the concatenated string, merged from three lines, only contains one
beginning and the pattern "^" would not match as expected. Use a range()
loop to iterate each line string individually. This way, the pattern "^"
works for beginning of lines.
- improve BitBake include file detection by also matching forward-slashes
"/" in variable names and assignment operators with a dot ".=" and "=.".
Valid examples, which should match, are:
PREFERRED_PROVIDER_virtual/kernel = "linux-yocto"
MACHINEOVERRIDES =. "qemuall:"
BBPATH .= ":${LAYERDIR}"
- parse twenty instead of just three lines, to accommodate for potential
comments at the beginning of files
closes: vim/vim#18202
https://github.com/vim/vim/commit/9fd1a657d2efae5cff278eb5acaa380623a50cf6
Co-authored-by: Martin Schwan <m.schwan@phytec.de>
Diffstat (limited to 'runtime/syntax/python.vim')
0 files changed, 0 insertions, 0 deletions