开发者

Incorrect syntax highlighting Vim (Actionscript 3)

开发者 https://www.devze.com 2023-01-05 01:06 出处:网络
The braces shown below after ...ret):String are incorrectly being highlighted as red I\'m using the following syntax definition file for actionscript:

The braces shown below after ...ret):String are incorrectly being highlighted as red

I'm using the following syntax definition file for actionscript:

  • http://www.vim.org/scripts/script.php?script_id=1061

Incorrect syntax highlighting Vim (Actionscript 3)

2 Questions:

  1. Does anyone happen to know off-hand what causes this weird matching?
  2. Is there anyway of identifyin开发者_运维问答g the current syntax matching group under the cursor?


  1. It's because the syntax file doesn't support anonymous functions. I guess usually (in many other languages) that's an error? Fix it by removing syn match actionScriptInParen contained "[{}]" from actionscript.vim.

  2. I don't know.

0

精彩评论

暂无评论...
验证码 换一张
取 消