Skip to content

Commit 7ebd379

Browse files
authored
Merge pull request #3697 from techee/var_prefix
autoit: Drop $ from variable names
2 parents 5ba7dfc + 85fa80a commit 7ebd379

File tree

6 files changed

+76
-6
lines changed

6 files changed

+76
-6
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
$iDoubled input.au3 /^Local $iDoubled = 0$/;" l roles:def
2-
$iFirst input.au3 /^ LOCAL STATIC $iFirst = 0$/;" l func:All functions.MyDummy roles:def properties:static
3-
$iNumber input.au3 /^Local $iNumber = 10$/;" l roles:def
4-
$iSecond input.au3 /^ STATIC LOCAL $iSecond = 1$/;" l func:All functions.MyDummy roles:def properties:static
5-
$iSomething input.au3 /^ Local $iSomething = 42$/;" l func:All functions.MyDouble0 roles:def
61
All functions input.au3 /^#Region All functions$/;" r roles:def end:54
72
Constants.au3 input.au3 /^#include <Constants.au3>$/;" S roles:system
83
GUIConstantsEx.au3 input.au3 /^#include<GUIConstantsEx.au3>$/;" S roles:system
@@ -12,3 +7,8 @@ MyDouble1 input.au3 /^ FUNC MyDouble1($iValue)$/;" f region:All functions si
127
MyDummy input.au3 /^FUNC MyDummy($iValue)$/;" f region:All functions signature:($iValue) roles:def end:53
138
MyVolatileDouble input.au3 /^Volatile Func MyVolatileDouble ($iValue)$/;" f region:All functions signature:($iValue) roles:def end:47 properties:volatile
149
WindowsConstants.au3 input.au3 /^#include "WindowsConstants.au3"$/;" S roles:local
10+
iDoubled input.au3 /^Local $iDoubled = 0$/;" l roles:def
11+
iFirst input.au3 /^ LOCAL STATIC $iFirst = 0$/;" l func:All functions.MyDummy roles:def properties:static
12+
iNumber input.au3 /^Local $iNumber = 10$/;" l roles:def
13+
iSecond input.au3 /^ STATIC LOCAL $iSecond = 1$/;" l func:All functions.MyDummy roles:def properties:static
14+
iSomething input.au3 /^ Local $iSomething = 42$/;" l func:All functions.MyDouble0 roles:def

docs/man-pages.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Man pages
1717
ctags-faq(7) <man/ctags-faq.7.rst>
1818

1919
ctags-lang-asm(7) <man/ctags-lang-asm.7.rst>
20+
ctags-lang-autoit(7) <man/ctags-lang-autoit.7.rst>
2021
ctags-lang-elm(7) <man/ctags-lang-elm.7.rst>
2122
ctags-lang-fortran(7) <man/ctags-lang-fortran.7.rst>
2223
ctags-lang-gdscript(7) <man/ctags-lang-gdscript.7.rst>

docs/man/ctags-lang-autoit.7.rst

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
.. _ctags-lang-autoit(7):
2+
3+
==============================================================
4+
ctags-lang-autoit
5+
==============================================================
6+
7+
Random notes about tagging AutoIt source code with Universal Ctags
8+
9+
:Version: 6.0.0
10+
:Manual group: Universal Ctags
11+
:Manual section: 7
12+
13+
SYNOPSIS
14+
--------
15+
| **ctags** ... --languages=+AutoIt ...
16+
| **ctags** ... --language-force=AutoIt ...
17+
| **ctags** ... --map-AutoIt=+.au3 ...
18+
19+
DESCRIPTION
20+
-----------
21+
This man page gathers random notes about tagging AutoIt source code.
22+
23+
VERSIONS
24+
--------
25+
26+
Change since "0.0"
27+
~~~~~~~~~~~~~~~~~~
28+
29+
* Drop ``$`` from tags for variables names.
30+
31+
SEE ALSO
32+
--------
33+
:ref:`ctags(1) <ctags(1)>`

man/GNUmakefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ GEN_IN_MAN_FILES = \
2828
ctags-faq.7 \
2929
\
3030
ctags-lang-asm.7 \
31+
ctags-lang-autoit.7 \
3132
ctags-lang-elm.7 \
3233
ctags-lang-fortran.7 \
3334
ctags-lang-gdscript.7 \

man/ctags-lang-autoit.7.rst.in

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
.. _ctags-lang-autoit(7):
2+
3+
==============================================================
4+
ctags-lang-autoit
5+
==============================================================
6+
---------------------------------------------------------------------
7+
Random notes about tagging AutoIt source code with Universal Ctags
8+
---------------------------------------------------------------------
9+
:Version: @VERSION@
10+
:Manual group: Universal Ctags
11+
:Manual section: 7
12+
13+
SYNOPSIS
14+
--------
15+
| **@CTAGS_NAME_EXECUTABLE@** ... --languages=+AutoIt ...
16+
| **@CTAGS_NAME_EXECUTABLE@** ... --language-force=AutoIt ...
17+
| **@CTAGS_NAME_EXECUTABLE@** ... --map-AutoIt=+.au3 ...
18+
19+
DESCRIPTION
20+
-----------
21+
This man page gathers random notes about tagging AutoIt source code.
22+
23+
VERSIONS
24+
--------
25+
26+
Change since "0.0"
27+
~~~~~~~~~~~~~~~~~~
28+
29+
* Drop ``$`` from tags for variables names.
30+
31+
SEE ALSO
32+
--------
33+
ctags(1)

parsers/autoit.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ static void findAutoItTags (void)
281281
skipSpaces (&p);
282282
if (*p == '$')
283283
{
284-
vStringPut (name, (int) *p++);
284+
p++;
285285
while (isIdentChar ((int) *p))
286286
{
287287
vStringPut (name, (int) *p);
@@ -313,5 +313,7 @@ parserDefinition *AutoItParser (void)
313313
def->extensions = extensions;
314314
def->parser = findAutoItTags;
315315
def->useCork = CORK_QUEUE;
316+
def->versionCurrent = 1;
317+
def->versionAge = 0;
316318
return def;
317319
}

0 commit comments

Comments
 (0)