[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nano-devel] Space in syntax names

From: Mike Scalora
Subject: [Nano-devel] Space in syntax names
Date: Tue, 5 Apr 2016 21:22:57 -0600

I noticed if you try to put a space in a syntax name in the config file you get an error (in a debug build at least):


    syntax "Apache Config" "\.conf$"


    Error in /Users/mscalora/.nanorc on line 6: A syntax name must be quoted

The cause appears to be the parse_next_word() function stops at the first space/isblank() or null char. and then parse_syntax() fails to find the closing quote.

It is not clear is the prohibition is intentional or not but I can't think of a good reason to quote the name if spaces are not permitted. In any case the error is a bit misleading since the name is quoted. It does appear that the second argument, a regexp can contain a space.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]