id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
3732	mcedit syntax highlighting for rc.conf	kuzvesov		"I tried to create syntax highlighting rules for freebsd's rc.conf. 

And discovered few things:

1. The '''include''' command in ''~/.config/mc/mcedit/Syntax'' doesn't search for files in directory ''~/.config/mc/mcedit/''. So if I want to add my own syntax highlighting I must either add it right into ''Syntax'' file, meaning no '''include''' commands, or place syntax files into ''/usr/local/share/mc/syntax/''. Syntax ''include ~/.config/mc/mcedit/something.syntax'' doesn't work too, so I must use full paths in '''include''' command and local ''Syntax'' file appears to be user-specific.

2. Creating own ''Syntax'' file prevents using of system-wide ''Syntax''. If I place in local ''Syntax'' command ''include Syntax'', or command ''include /usr/local/share/mc/syntax/Syntax'', or pair of ''file .\* all'' + ''include Syntax'' then mc complains about first '''include''' command in system-wide ''Syntax'' file.

3. It appears that '''whole''' option of '''keyword''' command doesn't work as it should (or at least, as I think it should work). I started with the following simple syntax file for ''rc.conf'':
{{{
# default context
context default
    wholechars ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_
    keyword whole *_enable yellow

# comments
context # \n gray
}}}
 The result is following \\
 [[Image(https://pp.vk.me/c626317/v626317466/3737a/jQTcL60rcvM.jpg)]] \\
 So it highlights all chars from the beginning of string, no matter that they do not form a whole word. I tried all three options: '''whole''', '''wholeleft''' and '''wholeright''', the result is the same. \\
 (I'll attach the screenshot just for case).

"	defect	closed	minor		mcedit	4.8.18	wontfix	mcedit syntax highlighting				no branch	
