Ticket #2323 (accepted defect)
Syntax hightlighting rule order bogus
Reported by: | ossi | Owned by: | zaytsev |
---|---|---|---|
Priority: | major | Milestone: | 4.8.34 |
Component: | mcedit | Version: | master |
Keywords: | Cc: | zaytsev | |
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description
opening the file makefile.cpp in the editor causes it to be highlighted with Makefile syntax instead of C++ syntax.
the fix is checking the extension rules first.
Attachments
Change History
comment:2 Changed 14 years ago by zaytsev
- Status changed from new to accepted
- Owner set to zaytsev
- Cc zaytsev added
comment:4 Changed 13 years ago by andrew_b
- Branch state set to no branch
- Milestone set to Future Releases
comment:6 Changed 13 days ago by zaytsev
- Milestone changed from Future Releases to 4.8.34
- Summary changed from syntax hightlighting rule order bogus to Syntax hightlighting rule order bogus
TODO:
- Sort.
- Fix wrong patterns:
file .\*\\.toml$ TOML\sFile include toml.syntax file .\*\\.(mch|ref|imp)$ B\sFile include b.syntax
- ..\* -> .\+
- Patch by ossi.
Note: See
TracTickets for help on using
tickets.
also, the regexp is waaaaay too broad. it should be something like that: