Commit Graph

30 Commits

Author SHA1 Message Date
Don HO
3aaf083c1d Add unit tests for function list feature
go to notepad-plus-plus\PowerEditor\Test\FunctionList directory then
launch the following commands:
powershell ./unitTestLauncher.ps1
2018-04-13 12:46:03 +02:00
oirfeodent
16b62c9f45 Add BaanC Sections in functionlist.xml
Based on
https://notepad-plus-plus.org/community/topic/14494/functionlist-classrange-question

Closes #3842
2017-11-25 16:53:31 +01:00
vlakoff
60b4aa6b75 Enhance Function List for PHP and JavaScript
Support interface and trait in PHP.
Support space between function name and opening parenthesis in PHP and JavaScript. Fixes at least #1919 and #2604.

About the JavaScript regex:

Current:
function(\s+[A-Za-z_]?\w*\([^\)\(]*\)|\([^\)\(]*\))

There are 2 parts, for named and anonymous functions. Note there is some duplication, let's simplify it:
function(\s+[A-Za-z_]?\w*)?\([^\)\(]*\)

The first character of function name is not optional (of course when the function is named), let's fix it:
function(\s+[A-Za-z_]\w*)?\([^\)\(]*\)

Finally let's support the possible spaces before opening parenthesis, for both named and anonymous functions:
function(\s+[A-Za-z_]\w*)?\s*\([^\)\(]*\)

Fixes #1919, fixes #2604, fixes #1667, fixes #2962
closes #2523, closes #2621
2017-08-27 02:04:19 +02:00
MAPJe
9dc109f599 FunctionList Update 2
* Implemented XML Schema for functionList.xml.
* functionList.xml:
1. new layout of association map;
2. placed `displayName` before `id` attribute where applicable;
3. utilize inline comments;
4. parsers added: 'XML for FunctionList', Assembly, AutoIt3, InnoSetup, PowerShell, KRL, Sinumerik and UniVerse BASIC;
5. parsers improved: C, Java, Batch, Bash, XML and NSIS;
6. replaced `[\t\x20]` with `\h` where possible;
7. using upper case notation for hexadecimal values e.g. `\x7F-\xFF`;

Closes #2602
2017-01-27 01:40:57 +01:00
MAPJe
5d438aa082 Normalize functionList.xml
- Updated file header and `associationMap`-header.
- Changed order of associations and parsers to follow ascending 'langID' numerical values.
- Removed `displayMode` attributes (are not used).
- Make functionList.xml XML compliant.
- Put set of characters in same order in all character groups.
- Correct `)/` to `/)` in `commentExpr`-attribute.
- Add pattern modifier to multi-line comment expression.
- Add pattern modifier to single-line comment expression.
- When applicable remove outer most parentheses of `commentExpr`-attribute.
- As an underscore is part of character class `\w` (equals group `[A-Za-z0-9_]`) remove the underscore when both are used in the same group.
- Replace the `A-Za-z0-9_` set in a group with character class `\w` as they are equal.
- No need to put one character class in a group e.g. change `[\w]` to `\w`.
- Replace space character with its hexdecimal representation i.e. \x20.
- Corrected Python parser i.e. renamed `funcNameExpr` to `nameExpr` in function-parser part.
- Changed use of L_JS (19) to L_JAVASCRIPT (58).

Closes #2335
2016-10-08 00:08:12 +02:00
Jishin42
7f1fb46223
Updated functionList.xml to support Ruby
Supports def & class
Fix indentation with tabulations
closes #1742
2016-07-20 09:24:33 +09:00
Christian Grasser
d8acff80d0 Add final and override for c++ 11 in fuctionList (closes #790)
, see:
- http://en.cppreference.com/w/cpp/language/final
- http://en.cppreference.com/w/cpp/language/override
2015-09-03 16:59:43 +02:00
Christian Grasser
b779f5e647 Fix for detecting C/C++ in function list (fixes #457, closes #609)
* Detect C functions: `void ** VoidStarStar ( )`
 * Detect C++ functions: `void ** VoidStarStar ( )`
 * Detect C++ functions: `int& RefReturnValue ()`
 * Detect C++ methods: `void ** Class::VoidStarStar ( )`
 * Detect C++ methods: `int& Class::RefReturnValue ()`
2015-08-07 13:44:01 +02:00
Don Ho
f043be8d25 [ENHANCEMENT] Enhance php parser in functionList.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1285 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-11-07 08:21:30 +00:00
Don Ho
57633249ab [NEW] Add C# in Function List.
[BUG_FIXED] Add "Block Uncomment" command in the Shortcut Mapper.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1281 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-10-28 22:09:55 +00:00
Don Ho
7d2e4a3593 [UPDATE] Add new language Gujarati.
[NEW] Add python parson for function List.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1273 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-08-15 23:05:45 +00:00
Don Ho
fefa864ff5 [FIXED] Make functionList.xml validated xml file.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1271 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-08-05 06:42:48 +00:00
Don Ho
e680fca05b [NEW] Add shell script parser for the function list.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1231 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-05-01 12:59:04 +00:00
Don Ho
9c9fa8c484 [NEW_FEATURE] Automatic Backup System (in progress).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1203 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-03-27 01:30:31 +00:00
Don Ho
fd800dcf20 [ENHANCEMENT] Enhance Function list: better regconization of perl function.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1191 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-02-25 19:45:06 +00:00
Don Ho
4a90b305bb [ENHANCEMENT] Improve php and js parsers in functionList.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1155 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-12-07 01:41:25 +00:00
Don Ho
9594e0baf8 [RELEASE] Notepad++ 6.5.1 Release.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1144 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-11-03 22:22:57 +00:00
Don Ho
0da8942be8 [NEW_FEATURE] Add search ability into function list.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1130 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-10-12 09:10:03 +00:00
Don Ho
5d900beba2 [RELEASE] Notepad++ 6.5 Release.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1127 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-09-29 08:27:23 +00:00
Don Ho
3a593808a5 [NEW_FEATURE] Add User Defined Languages support for the build-in function list.
[BUG_FIXED] Fix a minor problem of file extension support for the build-in function list.
[NEW] Add php, perl, xml, batch, ini and nsis for the build-in function list.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1113 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-09-08 22:02:26 +00:00
Don Ho
59fc425d7d [BUG_FIXED] Fix a crash issue while there's missing tag in function list.
[BUG_FIXED] Fix function list parses C++ class (*.h) problem while there is comment on the beginning of document.
[ENHANCEMENT] Enhance C/C++ parse result for function list.


git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1101 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-08-08 16:08:29 +00:00
Don Ho
9cabe6eacf [UPDATE] Update GUI translation.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1071 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-07-07 18:27:03 +00:00
Don Ho
896c705979 [UPDATE] Change function list xml structure (minor).
[BUG_FIXED] Fix a function list bug about comment. 

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1058 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-06-12 23:36:34 +00:00
Don Ho
03b2582a6c [UPDATE] Enhance C++ parser for function list.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1051 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-05-30 21:22:45 +00:00
Don Ho
45f9d6e13b [UPDATE] Build-in FunctionList in progress.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1031 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-03-20 22:50:48 +00:00
Don Ho
d6ea29c577 [NEW] Add new API NPPM_GETCURRENTVIEW.
Add new capacity in existent API NPPM_GETMENUHANDLE.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1028 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-03-03 01:04:09 +00:00
Don Ho
49128550d4 [UPDATE] Build-in FunctionList in progress.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1025 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-02-22 23:17:28 +00:00
Don Ho
27b2431ad3 [UPDATE] Build-in FunctionList in progress.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1008 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-01-23 22:59:54 +00:00
Don Ho
0a8a17fa98 [UPDATE] Build-in FunctionList in progress.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1005 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-01-18 01:48:30 +00:00
Don Ho
ef6c612dc7 [UPDATE] Build-in FunctionList in progress.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1001 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-01-06 01:50:12 +00:00