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
2 Questions:
- Does anyone happen to know off-hand what causes this weird matching?
- Is there anyway of identifyin开发者_运维问答g the current syntax matching group under the cursor?
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.I don't know.
精彩评论