Skip to content

Commit

Permalink
NSIS: new parser imported from Geany
Browse files Browse the repository at this point in the history
This pull request adds one of the extra parsers we have in Geany except
those defined in c.c and except the markdown parser which is readLine()
based and not really superior to the regex-based parser ctags uses
(we should probably use the ctags parser in Geany instead).

The added a parser is for Nsis (https://en.wikipedia.org/wiki/Nullsoft_Scriptable_Install_System).

The original version is written for Geany by Enrico Tröger <enrico.troeger@uvena.de>:
commit 61f89d5c259c2538ceff815e8f2e5226343e89ff
Author: Enrico Tröger <enrico.troeger@uvena.de>
Date:   Tue Apr 21 20:52:19 2009 +0000

    Add a trivial symbol parser for NSIS files.

    git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3716 ea778897-0a13-0410-b9d1-a72fbfd435f5

This log message is edited by @masatake.
  • Loading branch information
techee authored and masatake committed Jul 8, 2019
1 parent 1258adf commit ce36273
Show file tree
Hide file tree
Showing 10 changed files with 643 additions and 1 deletion.
1 change: 1 addition & 0 deletions Units/simple-nsis.d/args.ctags
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--sort=no
20 changes: 20 additions & 0 deletions Units/simple-nsis.d/expected.tags
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Answer input.nsi /^Var Answer$/;" v
UserName input.nsi /^Var UserName$/;" v
StartmenuFolder input.nsi /^Var StartmenuFolder$/;" v
UNINSTDIR input.nsi /^Var UNINSTDIR$/;" v
\x21Program Files input.nsi /^Section "!Program Files" SEC01$/;" s
Plugins input.nsi /^Section "Plugins" SEC02$/;" s
Language Files input.nsi /^Section "Language Files" SEC03$/;" s
Documentation input.nsi /^Section "Documentation" SEC04$/;" s
Autocompletion Tags input.nsi /^Section "Autocompletion Tags" SEC05$/;" s
GTK input.nsi /^Section "GTK ${GTK_VERSION} Runtime Environment" SEC06$/;" s
Context Menus input.nsi /^Section "Context Menus" SEC07$/;" s
Desktop Shortcuts input.nsi /^Section "Desktop Shortcuts" SEC08$/;" s
Development files input.nsi /^Section "Development files" SEC09$/;" s
-AdditionalIcons input.nsi /^Section -AdditionalIcons$/;" s
-Post input.nsi /^Section -Post$/;" s
Uninstall input.nsi /^Section Uninstall$/;" s
.onInit input.nsi /^Function .onInit$/;" f
un.onUninstSuccess input.nsi /^Function un.onUninstSuccess$/;" f
un.onInit input.nsi /^Function un.onInit$/;" f
OnDirLeave input.nsi /^Function OnDirLeave$/;" f
Loading

0 comments on commit ce36273

Please sign in to comment.