[Github-comments] [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)
Skif-off
notifications at xxxxx
Mon Aug 6 14:47:31 UTC 2018
Skif-off commented on this pull request.
> +/*
+* FUNCTION DEFINITIONS
+*/
+static void findAutoItTags (void)
+{
+ vString *name = vStringNew ();
+ const unsigned char *line;
+
+ while ((line = readLineFromInputFile ()) != NULL)
+ {
+ const unsigned char* p = line;
+ if (p [0] == '#')
+ {
+ /* min. string "#region" > 7 */
+ if ((p [1] == 'R' || p [1] == 'r') &&
+ strlen ((const char *) p) > 8 &&
I remembered why I used ```strlen()``` :) Besides subscript.
Function defining:
```autoit
Func t()
```
function name is ```t``` and one symbol is a minimum length of name. If string beginning with ```func``` then we have define of function , but if string length less 8 symbols then we have not valid function name, i.e. we have not function name, and this string should be discarded.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1752#discussion_r207918363
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20180806/e687221f/attachment-0001.html>
More information about the Github-comments
mailing list