If, within a given text format, there are grammar items with partially overlapping definitions, is there any way to specify which ones have precedence when assigning color syntax highlighting? Reordering the grammar items does not seem to affect the outcome.
Here is my situation (build 456):
Item 1) Standard Line Numbers Syntax Highlight - column 73 - 80
Item 2) Standard Line Numbers Unimportant - regexp (\s*)|(\s*[0-9]{8})|([0-9]{8})$ (more than one minor variant of this regexp yields the same ignore results - I just picked the last one I used).
I want to highlight item 1 text with both foreground and background shades. I want to leave item 2 text with default shades so that I won't highlight the background of the "trailing" whitespace before the numbers. No matter which order I specify items 1 and 2, the standard numbers will not highlight. If I delete item 2, then highlighting occurs. If I delete item 1 and specify highlighting for item 2, then "trailing" whitespace is highlighted along with the numbers.
In the session settings, item 2 is unimportant. I cannot simply specify just Item 1 for both syntax highlighting and unimportant text because specifying Item 1 then introduces "trailing" whitespace up through column 72 which BC interprets as embedded whitespace - and I don't want ignore embedded whitespace.
Any help is appreciated,
Jerry
Here is my situation (build 456):
Item 1) Standard Line Numbers Syntax Highlight - column 73 - 80
Item 2) Standard Line Numbers Unimportant - regexp (\s*)|(\s*[0-9]{8})|([0-9]{8})$ (more than one minor variant of this regexp yields the same ignore results - I just picked the last one I used).
I want to highlight item 1 text with both foreground and background shades. I want to leave item 2 text with default shades so that I won't highlight the background of the "trailing" whitespace before the numbers. No matter which order I specify items 1 and 2, the standard numbers will not highlight. If I delete item 2, then highlighting occurs. If I delete item 1 and specify highlighting for item 2, then "trailing" whitespace is highlighted along with the numbers.
In the session settings, item 2 is unimportant. I cannot simply specify just Item 1 for both syntax highlighting and unimportant text because specifying Item 1 then introduces "trailing" whitespace up through column 72 which BC interprets as embedded whitespace - and I don't want ignore embedded whitespace.
Any help is appreciated,
Jerry
Comment