Commit Graph

33 Commits

Author SHA1 Message Date
danymat
701d55f1a7 (lua) Update configurations (#63) 2022-02-04 09:21:02 +01:00
danymat
84aa3d3cba doc: Add section :h neogen-template-api 2022-02-01 18:56:51 +01:00
danymat
40bfc7e21a ref!: Extract template codes into template dir
I possibly introduced some bugs in the process, please open an issue if
so.

- This is an attempt to refactor the code and provide re-use of templates
(for example, doxygen or jsdoc)
- I standardized the exposed returned nodes for a template (you can view
  it by going to lua/neogen/types/template.lua)
2022-02-01 12:44:36 +01:00
kevinhwang91
efdb89228e fix(lua): missing return statement for function type 2022-02-01 03:34:37 +08:00
danymat
a03cbd18f4 (lua) Update configurations 2022-01-28 22:14:13 +01:00
danymat
57e76c6102 ref: Code refactoring
- Try to not expose as much commands and code via neogen
- Use minidoc to generate docgen
2022-01-26 11:50:23 +01:00
danymat
291fb5d98c (lua) Update configurations (#43) 2022-01-25 21:12:39 +01:00
danymat
ef0c66e2b9 (lua) Update configurations 2022-01-23 13:17:55 +01:00
danymat
36ac4b926a (lua) Update configurations 2022-01-23 13:15:03 +01:00
danymat
33e9e73b92 fix(lua) Update lua to new parser 2022-01-21 10:28:05 +01:00
danymat
ded4838eaf fix(lua) Ldoc annotation was not annotating in class 2022-01-09 14:35:53 +01:00
danymat
76a80479d7 feat(lua) Add support for file annotations (#31) 2022-01-09 14:30:49 +01:00
danymat
864c6a6353 fix(lua) Remove default type 2021-11-14 21:16:12 +01:00
Daniel Mathiot
19d5cd8c01 Add global recursive option for nodes 2021-09-29 15:02:15 +02:00
Daniel Mathiot
7b8631697d (lua) Fix nested functions sometimes not being found 2021-09-12 17:45:36 +02:00
Daniel Mathiot
9dd01fbab8 (lua) Recursive find of function instead of fixed 2021-08-31 12:11:04 +02:00
Daniel Mathiot
518515be3e (lua) Add ldoc annotation convention 2021-08-29 18:43:11 +02:00
Daniel Mathiot
1d97f1415e Add default value for template 2021-08-27 21:19:19 +02:00
Daniel Mathiot
2c9936781f Add multiple cursor positioning to template 2021-08-27 20:23:48 +02:00
Daniel Mathiot
fddd50553e (lua) types are now guessed for type annotations
This made me to do small adjustments to the tree extractor, and it now
can retrieve fixed positions from the tree. If no node_type name is
specified, it will put all nodes fetched from fixed positions to ["_"]
= values
2021-08-26 12:28:46 +02:00
Daniel Mathiot
48f8f4dd65 (lua) Full specs for type annotations 2021-08-26 11:03:41 +02:00
Daniel Mathiot
a8954178da (lua) add type annotation for variables 2021-08-25 14:13:32 +02:00
Daniel Mathiot
1002ae5948 Add support for multiple types, see Readme:Usage 2021-08-25 13:39:55 +02:00
Daniel Mathiot
ce765cc43c (lua) Add support for returns in local_functions
The extractor function being the same, I refactored the lua config file
a little bit
2021-08-25 12:22:36 +02:00
Daniel Mathiot
b58292f71f Add default comments when no results (python, lua) 2021-08-24 17:06:32 +02:00
Daniel Mathiot
77515a574d Refactor to a simpler tree parsing
You can now parse the syntax tree more efficiently with the new
utilities functions.
For examples, please check out the lua and python configurations
2021-08-24 09:41:15 +02:00
Daniel Mathiot
52128c1bd5 Add utilities
After a refactoring of utilities, I added a function to get the first
child node that matches the node name.

Documentation is provided in neogen.utilities.nodes
2021-08-23 16:00:43 +02:00
Daniel Mathiot
2eb4f76cc9 Make template.annotation_convention a standard
The default generator will now use the annotation_convention field in
template in order to use the requested template
2021-08-23 11:33:08 +02:00
Daniel Mathiot
dd54ea7708 Specify template convention in lua 2021-08-23 10:51:29 +02:00
Daniel Mathiot
ec09985e9d Add return statement for lua
At the moment, it only extracts return statements from direct children
of the function_definition
2021-08-21 18:05:03 +02:00
Daniel Mathiot
ebeb5aa329 Refactor
More documentation, changed function signature
2021-08-21 16:47:49 +02:00
Daniel Mathiot
f42e14f633 Add documentation
Added docs in multiple places, refactored some functions and changed
places.
2021-08-21 07:31:57 +02:00
Daniel Mathiot
c4f3725af7 Refactor
This is a first iteration of refactoring the codebase, and generating
annotations along the way.
Added "variable_declaration" as parent node for lua
2021-08-19 22:42:57 +02:00