Skip to content

Commit

Permalink
Merge pull request #3697 from techee/var_prefix
Browse files Browse the repository at this point in the history
autoit: Drop $ from variable names
  • Loading branch information
masatake committed Apr 27, 2023
2 parents 5ba7dfc + 85fa80a commit 7ebd379
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Units/parser-autoit.r/simple-au3.d/expected.tags
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
$iDoubled input.au3 /^Local $iDoubled = 0$/;" l roles:def
$iFirst input.au3 /^ LOCAL STATIC $iFirst = 0$/;" l func:All functions.MyDummy roles:def properties:static
$iNumber input.au3 /^Local $iNumber = 10$/;" l roles:def
$iSecond input.au3 /^ STATIC LOCAL $iSecond = 1$/;" l func:All functions.MyDummy roles:def properties:static
$iSomething input.au3 /^ Local $iSomething = 42$/;" l func:All functions.MyDouble0 roles:def
All functions input.au3 /^#Region All functions$/;" r roles:def end:54
Constants.au3 input.au3 /^#include <Constants.au3>$/;" S roles:system
GUIConstantsEx.au3 input.au3 /^#include<GUIConstantsEx.au3>$/;" S roles:system
Expand All @@ -12,3 +7,8 @@ MyDouble1 input.au3 /^ FUNC MyDouble1($iValue)$/;" f region:All functions si
MyDummy input.au3 /^FUNC MyDummy($iValue)$/;" f region:All functions signature:($iValue) roles:def end:53
MyVolatileDouble input.au3 /^Volatile Func MyVolatileDouble ($iValue)$/;" f region:All functions signature:($iValue) roles:def end:47 properties:volatile
WindowsConstants.au3 input.au3 /^#include "WindowsConstants.au3"$/;" S roles:local
iDoubled input.au3 /^Local $iDoubled = 0$/;" l roles:def
iFirst input.au3 /^ LOCAL STATIC $iFirst = 0$/;" l func:All functions.MyDummy roles:def properties:static
iNumber input.au3 /^Local $iNumber = 10$/;" l roles:def
iSecond input.au3 /^ STATIC LOCAL $iSecond = 1$/;" l func:All functions.MyDummy roles:def properties:static
iSomething input.au3 /^ Local $iSomething = 42$/;" l func:All functions.MyDouble0 roles:def
1 change: 1 addition & 0 deletions docs/man-pages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Man pages
ctags-faq(7) <man/ctags-faq.7.rst>

ctags-lang-asm(7) <man/ctags-lang-asm.7.rst>
ctags-lang-autoit(7) <man/ctags-lang-autoit.7.rst>
ctags-lang-elm(7) <man/ctags-lang-elm.7.rst>
ctags-lang-fortran(7) <man/ctags-lang-fortran.7.rst>
ctags-lang-gdscript(7) <man/ctags-lang-gdscript.7.rst>
Expand Down
33 changes: 33 additions & 0 deletions docs/man/ctags-lang-autoit.7.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.. _ctags-lang-autoit(7):

==============================================================
ctags-lang-autoit
==============================================================

Random notes about tagging AutoIt source code with Universal Ctags

:Version: 6.0.0
:Manual group: Universal Ctags
:Manual section: 7

SYNOPSIS
--------
| **ctags** ... --languages=+AutoIt ...
| **ctags** ... --language-force=AutoIt ...
| **ctags** ... --map-AutoIt=+.au3 ...
DESCRIPTION
-----------
This man page gathers random notes about tagging AutoIt source code.

VERSIONS
--------

Change since "0.0"
~~~~~~~~~~~~~~~~~~

* Drop ``$`` from tags for variables names.

SEE ALSO
--------
:ref:`ctags(1) <ctags(1)>`
1 change: 1 addition & 0 deletions man/GNUmakefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ GEN_IN_MAN_FILES = \
ctags-faq.7 \
\
ctags-lang-asm.7 \
ctags-lang-autoit.7 \
ctags-lang-elm.7 \
ctags-lang-fortran.7 \
ctags-lang-gdscript.7 \
Expand Down
33 changes: 33 additions & 0 deletions man/ctags-lang-autoit.7.rst.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.. _ctags-lang-autoit(7):

==============================================================
ctags-lang-autoit
==============================================================
---------------------------------------------------------------------
Random notes about tagging AutoIt source code with Universal Ctags
---------------------------------------------------------------------
:Version: @VERSION@
:Manual group: Universal Ctags
:Manual section: 7

SYNOPSIS
--------
| **@CTAGS_NAME_EXECUTABLE@** ... --languages=+AutoIt ...
| **@CTAGS_NAME_EXECUTABLE@** ... --language-force=AutoIt ...
| **@CTAGS_NAME_EXECUTABLE@** ... --map-AutoIt=+.au3 ...

DESCRIPTION
-----------
This man page gathers random notes about tagging AutoIt source code.

VERSIONS
--------

Change since "0.0"
~~~~~~~~~~~~~~~~~~

* Drop ``$`` from tags for variables names.

SEE ALSO
--------
ctags(1)
4 changes: 3 additions & 1 deletion parsers/autoit.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ static void findAutoItTags (void)
skipSpaces (&p);
if (*p == '$')
{
vStringPut (name, (int) *p++);
p++;
while (isIdentChar ((int) *p))
{
vStringPut (name, (int) *p);
Expand Down Expand Up @@ -313,5 +313,7 @@ parserDefinition *AutoItParser (void)
def->extensions = extensions;
def->parser = findAutoItTags;
def->useCork = CORK_QUEUE;
def->versionCurrent = 1;
def->versionAge = 0;
return def;
}

0 comments on commit 7ebd379

Please sign in to comment.