[Geany] PHP constants are not listed in symbol list (patch attached)

Harold Aling geany at xxxxx
Thu Nov 12 16:16:54 UTC 2009


Dear Geany devs,

I've updated Geany to the latest svn (r4424) and noticed that php
constants didn't show up in the symbol list.

I then baldly opened 'php.c' and started hacking in the regexes to get
them working again. In 'actionscript.c' the constants were part of
"m,macro,macros" so I decided to change that in php.c too. Constants
were showing again! ;)

I also remove a duplicate regex and also added one in my patch to show
constants in a "const NAME = 'value';" notation so all constants are
correctly parsed from this example:


<?php
abstract class test {
  const TEST = 'test';
}
define('TEST2', 'test');
?>


Cheers!


Harold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: geany_php_parser_const.patch
Type: text/x-diff
Size: 1124 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20091112/af63c7c3/attachment.patch>


More information about the Users mailing list