1 |
maillog: 20/05/2005-10:29:53(+0100): Ciaran McCreesh types |
2 |
> On Fri, 20 May 2005 18:01:04 +0900 Georgi Georgiev <chutz@×××.net> |
3 |
> wrote: |
4 |
> | > | %.1 : %.in |
5 |
> | > | @regex_cmd@ -e "s,\@VERSION\@,$(VERSION),g" $? > $@ |
6 |
> | > | |
7 |
> | > | The first "@" is span.Special and the second one is span.Constant. |
8 |
> | > |
9 |
> | > Hrm, that's a vim thing (I'm using a vim script to do the |
10 |
> | > highlighting at compile time, it's not manual). If someone enjoys |
11 |
> | > pain they could have a go at making vim's automake highlighting |
12 |
> | > smarter... Don't think I'm brave enough to touch that one myself. |
13 |
> | |
14 |
> | The 2html.vim that comes with vim seems to work fine here. Tried both |
15 |
> | 7__ and 6.3. The HTML is ugly, but at least it's properly highlighted: |
16 |
> | |
17 |
> | http://gg3.net/~chutz/gentoo/highlight/ |
18 |
> | |
19 |
> | Of course, you need to "set ft=automake", which is different than |
20 |
> | ft=make. ;) |
21 |
> |
22 |
> That's only working because you're indenting using spaces rather than |
23 |
> tabs. If you indent using tabs you'll get the mixed colouring. |
24 |
|
25 |
Owwww, so true, so true... |
26 |
|
27 |
I am trying to redeem myself with the following. Care to give it a try? |
28 |
|
29 |
--- /usr/share/vim/vim70aa/syntax/automake.vim.old 2005-05-20 19:05:09.000000000 +0900 |
30 |
+++ /usr/share/vim/vim70aa/syntax/automake.vim 2005-05-20 19:07:05.000000000 +0900 |
31 |
@@ -43,6 +43,7 @@ |
32 |
syn region automakeMakeDString start=+"+ skip=+\\"+ end=+"+ contains=makeIdent,automakeSubstitution |
33 |
syn region automakeMakeSString start=+'+ skip=+\\'+ end=+'+ contains=makeIdent,automakeSubstitution |
34 |
syn region automakeMakeBString start=+`+ skip=+\\`+ end=+`+ contains=makeIdent,makeSString,makeDString,makeNextLine,automakeSubstitution |
35 |
+syn region makeCommands start=";"hs=s+1 start="^\t" end="^[^\t#]"me=e-1,re=e-1 end="^$" contained contains=makeCmdNextLine,makeSpecial,makeComment,makeIdent,makePreCondit,makeDefine,makeDString,makeSString,autoMakeSubst,automakeMakeError,automakeBadSubst nextgroup=makeCommandError |
36 |
|
37 |
" Define the default highlighting. |
38 |
" For version 5.7 and earlier: only when not done already |
39 |
|
40 |
-- |
41 |
/\ Georgi Georgiev /\ Be not anxious about what you have, but /\ |
42 |
\/ chutz@×××.net \/ about what you are. -- Pope St. Gregory I \/ |
43 |
/\ +81(90)2877-8845 /\ /\ |