Patch #3281 2012-04-27 04:59

ziss_dm

Slight correction for the EditorColourSet::GetLanguageForFil
Download
3281-Slight_correct.patch (552 bytes)
Category
Application::Bugfix
Status
Accepted
Close date
2012-05-19 12:42
Assigned to
mortenmacfly
Index: src/sdk/editorcolourset.cpp
===================================================================
--- src/sdk/editorcolourset.cpp    (revision 7945)
+++ src/sdk/editorcolourset.cpp    (working copy)
@@ -381,7 +381,7 @@
 {
     // convert filename to lowercase first (m_FileMasks already contains
     // lowercase-only strings)
-    wxString lfname = filename.Lower();
+    wxString lfname = wxFileName(filename.Lower()).GetFullName();
 
     // first search in filemasks
     for (OptionSetsMap::iterator it = m_Sets.begin(); it != m_Sets.end(); ++it)
ziss_dm 2012-04-27 05:00

To be able to set masks like "makefile.*"

mortenmacfly 2012-05-14 07:48

How to reproduce?

ziss_dm 2012-05-14 08:16

Define file mask:

makefile.*

File:

"makefile.avr" does not match as it is checked against filename with path.

mortenmacfly 2012-05-15 07:05

Where do you want to set such a file mask? In CC, in the project tree, in the editor settings...?!

Please explain reproducible tasks / steps.

ziss_dm 2012-05-15 07:28

Sorry,

1) Settings\Editor\Syntax highlighting

2) Select highlighting for "Make"

3) Press "Filemasks.."

4) Add Mask: makefile.*

5) Open file makefile.avr in editor

Observed:

Highlight mode is not automatically selected

Expected

Highlight mode automatically set to "Make"