Skip to content

Leyki/j2nppac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

j2nppac

Parses JASS natives, functions, constants and types into a npp autocomplete file along with descriptions support.

Usage

Run j2nppac.py, main configurations can be made inside the script. Jass script files you can find in Jassdoc and Wc3 jass history scripts. common.j must always be parsed first to gather types.

Jassdoc should get you the latest scripts used by retail while Wc3 JASS history scripts should get you any version you could ever need. Or you may also just extract the scripts from the game files yourself and feed it your own made data as well.

If you want to write your own documentation for functions see: Jassdoc#Annotations.

For j2nppac's purposes, any @annotation is equivalent to annotation - in the same line and a directive to not append the annotation line into a previous line; @pure and @async get converted to <pure> and <async> though.

Issues/todo

  • Escaping for descriptions isn't supported.
  • Code not marked as such inside a code block isn't detected
  • Text wrapping could be better.