autoit.xml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!-- ==========================================================================\
  3. |
  4. | To learn how to make your own language parser, please check the following
  5. | link:
  6. | https://npp-user-manual.org/docs/function-list/
  7. |
  8. \=========================================================================== -->
  9. <NotepadPlus>
  10. <functionList>
  11. <!-- ===================================================== [ AutoIt3 ] -->
  12. <!--
  13. | Based on:
  14. | https://sourceforge.net/p/notepad-plus/discussion/331753/thread/5d9bb881/#e86e
  15. \-->
  16. <parser
  17. displayName="AutoIt3"
  18. id ="autoit3_function"
  19. commentExpr="(?x) # Utilize inline comments (see `RegEx - Pattern Modifiers`)
  20. (?is:\x23cs.*?\x23ce) # Multi Line Comment
  21. | (?m-s:^\h*;.*?$) # Single Line Comment
  22. "
  23. >
  24. <function
  25. mainExpr="(?x) # Utilize inline comments (see `RegEx - Pattern Modifiers`)
  26. (?m)^\h* # optional leading whitespace
  27. (?i:FUNC\s+) # start-of-function indicator
  28. \K # keep the text matched so far, out of the overall match
  29. [A-Za-z_]\w* # valid character combination for identifiers
  30. \s*\([^()]*?\) # parentheses required, parameters optional
  31. "
  32. >
  33. <!-- comment out the following node to display the function with its parameters -->
  34. <functionName>
  35. <nameExpr expr="[A-Za-z_]\w*" />
  36. </functionName>
  37. </function>
  38. </parser>
  39. </functionList>
  40. </NotepadPlus>