Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 133 by [email protected]: [syntax patch proposal] config.vim
recognize AC_MSG as strings
http://code.google.com/p/vim/issues/detail?id=133
In configure.ac scripts, the AC_MSG_ERROR([...]) defines a string
environment. This patch makes vim syntax recognize this correctly, and I
also made the educated guess that this more generally holds for any
AC_MSG_[A-Z]*([...]) environments.
The trouble with not detecting this is that you can have ' or ` inside
these strings, which are then defining a string environment until the next
occurence of ' or ` according to the current syntax file. This causes in my
case huge 'string environments' which makes the syntax highlighting kind of
pointless.
I also reduced two lines for comment recognition by using \z(\).
And fixed one spelling mistake in the comments. Please find the patch
attached. Please also note I am no expert in writing these syntax files, so
please feel free to edit as you see fit!
Minor comment:
I was originally hoping that this would work because I thought it would be
cleaner:
syn region configstring start="AC_MSG_[A-Z]*"ms=s+14 end="\])"me=e-2
However, the ms=s+14 does not work somehow. Is this a bug? If I used
hs=s+14 instead it is fine, but then the AC_MSG_ part and ([ is not
highlighted as they should.
Attachments:
config.vim.patch 1.9 KB
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.