asm.xml 1.3 KB

123456789101112131415161718192021222324252627282930
  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. <!-- ==================================================== [ Assembly ] -->
  12. <parser
  13. displayName="Assembly"
  14. id ="assembly_subroutine"
  15. commentExpr="(?x) # Utilize inline comments (see `RegEx - Pattern Modifiers`)
  16. (?m-s:;.*$) # Single Line Comment
  17. "
  18. >
  19. <function
  20. mainExpr="(?x) # Utilize inline comments (see `RegEx - Pattern Modifiers`)
  21. (?m)^\h* # optional leading whitespace
  22. \K # keep the text matched so far, out of the overall match
  23. [A-Za-z_$][\w$]* # valid character combination for labels
  24. (?=:) # up till the colon
  25. "
  26. />
  27. </parser>
  28. </functionList>
  29. </NotepadPlus>