Hello All,
I have searched high and low for an answer to this question with no luck…
Is there a way to exclude a specific file, say ‘foo.c’, from being parsed by the syntax highlighter?
I have one file in my source tree that is pretty big, and somewhere around line 217 (out of a total of 4000 lines) the syntax highlighter gives up. Just full on stops mid-line from highlighting anymore for the rest of the file. This in itself is annoying, but I can live with it. The problem arises when there is a git merge conflict in the file. For some reason, when the file contains the characters marking a merge conflict the parser seems to crash and the file WILL NOT OPEN in sublimetext until the offending characters are removed. I would prefer to have the syntax highlighter just skip this file and parse every other C file as usual if it’s possible.
Any thoughts?
Thanks!!
Sublime text version 2.0.2 (build 2221)
P.S.
I created a custom highlight rule in the C.tmLanguage file to parse the git merge conflict markers and this has temporarily solved my problem, but a full on “ignore this file” is probably the best fix for this problem.