[RISOLTO] errore di vim aprendo /etc/apt/sources.list

2007-12-09 Per discussione Luca Costantino
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

2007/12/9, Dario Pilori :
> Sulla mia lenny il file è il seguente:
> " A bunch of useful keywords
> syn match debsourcesKeyword/\(deb-src\|deb\|main\|contrib\|non-free\)/

grazie
a quanto pare mancava un backslash alla fine prima della parentesi tonda

grazie ancora
ciao
luca

- --
Chiave pubblica http://luca.costantino.googlepages.com/luca.asc
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHW8KgJZi4HbNnZzURAvUlAKCI8va8KXHXtgEaKxqbVasuEfuNMgCghkVu
u67ecvhDzunca5z1x2AJfIw=
=AyVo
-END PGP SIGNATURE-


Re: errore di vim aprendo /etc/apt/sources.list

2007-12-09 Per discussione Dario Pilori
Il 09/12/07, Luca Costantino<[EMAIL PROTECTED]> ha scritto:
> ma non ci vedo nulla di strano... qualcuno mi posterebbe gentilmente
> la sua riga incriminat, o meglio ancora tutto il file?
>
> grazie mille
> ciao
> luca

Sulla mia lenny il file è il seguente:


" Vim syntax file
" Language: Debian sources.list
" Maintainer:   Matthijs Mohlmann <[EMAIL PROTECTED]>
" Last Change:  $Date: 2006/03/28 21:08:56 $
" URL: http://www.cacholong.nl/~matthijs/vim/syntax/debsources.vim
" $Revision: 1.1 $

" this is a very simple syntax file - I will be improving it
" add entire DEFINE syntax

" Standard syntax initialization
if version < 600
  syntax clear
elseif exists("b:current_syntax")
  finish
endif

" case sensitive
syn case match

" A bunch of useful keywords
syn match debsourcesKeyword/\(deb-src\|deb\|main\|contrib\|non-free\)/

" Match comments
syn match debsourcesComment/#.*/

" Match uri's
syn match debsourcesUri+\(http://\|ftp://\|file:///\)[^'<>"]\++
syn match debsourcesDistrKeyword
+\([[:alnum:]_./]*\)\(woody\|sarge\|etch\|old-stable\|stable\|testing\|unstable\|sid\|experimental\|warty\|hoary\|breezy\)\([[:alnum:]_./]*\)+

" Associate our matches and regions with pretty colours
hi def link debsourcesLineError
hi def link debsourcesKeyword Statement
hi def link debsourcesDistrKeywordType
hi def link debsourcesComment Comment
hi def link debsourcesUri Constant

let b:current_syntax = "debsources"

" vim: ts=8

-- 
Dario Pilori
Linux registered user #406515

"Per chi intraprende cose belle è bello soffrire, qualsiasi cosa gli tocchi"
Platone, /Fedro/



errore di vim aprendo /etc/apt/sources.list

2007-12-09 Per discussione Luca Costantino
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

buongiorno lista
oggi aprendo il mio sources.list con vim mi sono accorto che ricevo
questo strano errore

- 8<8<-
"/etc/apt/sources.list" 4L, 177C
Errore/i eseguendo /usr/share/vim/vim71/syntax/debsources.vim:
linea   22:
E54: Senza riscontro: \(
E475: Argomento non valido: debsourcesKeyword
/\(deb-src\|deb\|main\|contrib\|non-free\|restricted\|universe\|multiver
se)/
Premi INVIO o un comando per proseguire
- 8<8<-

la riga incriminata nel file sarebbe questa
- 8<8<-
" A bunch of useful keywords
syn match debsourcesKeyword
/\(deb-src\|deb\|main\|contrib\|non-free\|restricted\|universe\|multiverse)/
- 8<8<-

ma non ci vedo nulla di strano... qualcuno mi posterebbe gentilmente
la sua riga incriminat, o meglio ancora tutto il file?

grazie mille
ciao
luca

- --
Chiave pubblica http://luca.costantino.googlepages.com/luca.asc
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHW7tIJZi4HbNnZzURArVNAJ4nFQ8GkWZswbSY878Q1BSDG5KaJgCeMMYk
hd1Sq9BkSF25nRAOgHfwgbs=
=kTEV
-END PGP SIGNATURE-


-- 
Per REVOCARE l'iscrizione alla lista, inviare un email a 
[EMAIL PROTECTED] con oggetto "unsubscribe". Per
problemi inviare un email in INGLESE a [EMAIL PROTECTED]

To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]