User forums > General (but related to Code::Blocks)

Beginning with SVN 10634 code highlighting defaults to plain text

<< < (2/4) > >>

headkase:

--- Quote from: oBFusCATed on January 01, 2016, 02:37:04 pm ---Works fine for me on linux.
Can someone else confirm that the issue happens?

--- End quote ---

As always I will gladly apply and compile test patches.  It's the least I can do for all the effort that is provided from the team at no monetary cost.

headkase:
Here, this file may be useful:

https://www.dropbox.com/s/2ie4mkgwjzcfale/Highlight_Builds.7z?dl=0

It is both builds 10633 and 10634 as compiled on my own system using MinGW-Builds 5.3.0 32-bit.  No contrib plugins, just the main project.  Everything needed to run them (toolchain dll's) are included.  If another Windows user does not have the issue with a different toolchain then it might be what I'm using.

MortenMacFly:

--- Quote from: headkase on January 01, 2016, 11:40:51 am ---* SVN 10633 correctly applies the appropriate code highlighting on opened files
* SVN 10634 defaults to plain text highlighting which is incorrect

--- End quote ---
I can reproduce on Windows. Lets have a look...

MortenMacFly:

--- Quote from: MortenMacFly on January 01, 2016, 04:40:32 pm ---
--- Quote from: headkase on January 01, 2016, 11:40:51 am ---* SVN 10633 correctly applies the appropriate code highlighting on opened files
* SVN 10634 defaults to plain text highlighting which is incorrect

--- End quote ---
I can reproduce on Windows. Lets have a look...

--- End quote ---
@oBFusCATed: I think for now I would revert your commit becasue it really causes the issue and that is serious. Will you do it?

Edit: Oh, and btw: After your commit I have two times the plain text file option: Ones is called "plain text" and the other is "Plain Text Files". Why? Are you sure you didn't implement something that was already there? :-)

MortenMacFly:

--- Quote from: headkase on January 01, 2016, 11:40:51 am ---Did some test compiles and narrowed down the issue:

--- End quote ---
For now, please remove the lexer on Windows (lexer_plain.xml) then it should work again. I think the reason for the bug is simple: The file mask in the lexer (*) hits for all files. As the index (1) is the lowest index it will always "win" for all files. Thus, all files will be handled as "plain text". This surely it not what we want, isn't it? To me its weird that it works on Linux, because it should show the same effect. Or does "*" mean really just a file w/o extension?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version