2072 / 2072/vim-syntax-for-PHP
oddities with shorttag off
- 主要語言
- Vim Script
- 星號
- 16
- 分支
- 4
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Found this by accident, after disabling shorttags parsing after working a rather large file that caused syntax parsing to take a few seconds...
shorttags not disabled (that is, the default)

(note that these are not short tags, but echo tags)
with `php_noShortTags=1`

with `php_noShortTags=1`, if I remove the `` be on a line with code (doesn't have to be a single line with the opening `` closing on its own line. Only after i save and quit and reopen the file (or save and `:e!`). Likewise if i open a file with the bug, removing the trigger won't fix it, until I reload the file. Whatever is causing it is "sticky".
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
The issue is in the Vim syntax file for PHP, likely in syntax/php.vim. Start by examining how shorttags are toggled with php_noShortTags and how regions for and echo tags are defined. Reproduce the bug with the provided examples to see the sticky highlighting behavior. Look for syntax region definitions that might incorrectly nest or fail to reset when the closing tag is on its own line.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- php, vim
- 領域
- devtools
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100