Ticket #2323 (accepted defect)

Opened 14 years ago

Last modified 13 years ago

syntax hightlighting rule order bogus

Reported by: ossi Owned by: zaytsev
Priority: major Milestone: Future Releases
Component: mcedit Version: master
Keywords: Cc: zaytsev
Blocked By: #2308 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

0001-match-makefile-syntax-towards-the-end.patch (1.1 KB) - added by ossi 4 years ago.

Change History

comment:1 Changed 14 years ago by ossi

also, the regexp is waaaaay too broad. it should be something like that:

file ([Mm]akefile(\\...\*)?|..\*\\.mk|Kbuild)$ Makefile
Last edited 11 years ago by ossi (previous) (diff)

comment:2 Changed 14 years ago by zaytsev

  • Status changed from new to accepted
  • Owner set to zaytsev
  • Cc zaytsev added

comment:3 Changed 14 years ago by andrew_b

  • Blocked By 2308 added

comment:4 Changed 13 years ago by andrew_b

  • Branch state set to no branch
  • Milestone set to Future Releases

Changed 4 years ago by ossi

Note: See TracTickets for help on using tickets.