Daniel Mathiot
a8954178da
(lua) add type annotation for variables
2021-08-25 14:13:32 +02:00
Daniel Mathiot
2449e499c1
(lua) Add support for class
2021-08-25 13:42:03 +02:00
Daniel Mathiot
1002ae5948
Add support for multiple types, see Readme:Usage
2021-08-25 13:39:55 +02:00
Daniel Mathiot
f5390e1c1f
Refactor of default generator
2021-08-25 12:32:17 +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
85cd80f8e6
If blank line is specified, do not add indentation
...
Closes #4
2021-08-24 22:11:54 +02:00
Daniel Mathiot
b58292f71f
Add default comments when no results (python, lua)
2021-08-24 17:06:32 +02:00
Daniel Mathiot
bf66cb12b5
(js) Add support for functions in var_declarations
2021-08-24 12:52:16 +02:00
Daniel Mathiot
14424a0887
(js) Add support for functions in statements
2021-08-24 12:44:33 +02:00
Daniel Mathiot
3a40a1d111
Add support for empty jsdoc comment
2021-08-24 12:09:43 +02:00
Daniel Mathiot
98329fcf77
Add basic support for javascript
...
At the moment, it recognizes simple functions, their params and their
direct return statements.
2021-08-24 11:43:45 +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
790c98edf1
Removed return if body is not found (python)
2021-08-23 20:03:14 +02:00
Daniel Mathiot
db3a136f7f
Update README.md
2021-08-23 19:23:25 +02:00
Daniel Mathiot
9ac072c50b
Merge branch 'main' of https://github.com/danymat/neogen
2021-08-23 19:12:27 +02:00
Daniel Mathiot
ee1e1a491c
Add support for numpydoc
2021-08-23 19:11:44 +02:00
Daniel Mathiot
e8a9a425be
Update README.md
2021-08-23 18:49:10 +02:00
Daniel Mathiot
88c4d40078
Support for optional params in python
2021-08-23 18:31:22 +02:00
Daniel Mathiot
969c0342af
Add typed parameters support in python
2021-08-23 18:19:24 +02:00
Daniel Mathiot
82b943ccdf
Add return statement for python function
2021-08-23 17:54:01 +02:00
Daniel Mathiot
2c87ccd4cd
Update Readme
2021-08-23 17:31:13 +02:00
Daniel Mathiot
3272811aa7
Add support for attributes in python class
2021-08-23 17:30:19 +02:00
Daniel Mathiot
ceeae74d0d
Merge branch 'main' of https://github.com/danymat/neogen
2021-08-23 16:02:13 +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
2ed58bbe50
Update README.md
2021-08-23 15:30:12 +02:00
Daniel Mathiot
6b08b2297c
Delete unused FIXME
2021-08-23 15:24:48 +02:00
Daniel Mathiot
46febe447c
Use child name to append text after parent
...
Instead of providing the number of childs to append after the parent, it
will append the comment just after the first child encountered with
child_name
2021-08-23 15:23:27 +02:00
Daniel Mathiot
03781f23d6
Make comment in after position more resilient
2021-08-23 15:08:41 +02:00
Daniel Mathiot
40616b25d7
Add python support
...
At the moment, only supports params for function definitions.
I added more options to configure the default generator (please see the
templates field in configuration/python.lua)
2021-08-23 12:53:27 +02:00
Daniel Mathiot
df48fe0a38
Update README.md
2021-08-23 11:38:25 +02:00
Daniel Mathiot
dd2feacb72
Update README.md
2021-08-23 11:37:17 +02:00
Daniel Mathiot
ec2ce497a4
Update Readme
2021-08-23 11:35:33 +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
25ef26da35
Update README.md
2021-08-23 10:33:34 +02:00
Daniel Mathiot
50dbd0857f
Update README.md
2021-08-23 10:24:42 +02:00
Daniel Mathiot
b85cd29627
Update README.md
2021-08-23 09:16:48 +02:00
Daniel Mathiot
429fec6e3d
Update README.md
2021-08-23 09:13:28 +02:00
Daniel Mathiot
4b294e456a
Update README.md
2021-08-23 09:08:51 +02:00
Daniel Mathiot
84920a1621
Update README.md
2021-08-23 08:50:07 +02:00
Daniel Mathiot
f6841b699a
Update README.md
2021-08-22 13:07:31 +02:00
Daniel Mathiot
95c6a1cfff
Update README.md
2021-08-22 12:51:16 +02:00
Daniel Mathiot
83bdedbd60
Update README.md
2021-08-22 12:50:21 +02:00
Daniel Mathiot
e9d99c52a2
Update README.md
2021-08-22 12:19:22 +02:00
Daniel Mathiot
450e55a1d2
Update README.md
2021-08-22 12:16:36 +02:00
Daniel Mathiot
11a2dc1080
Update README.md
2021-08-21 21:56:58 +02:00
Daniel Mathiot
86a20bd992
Update Readme
2021-08-21 21:54:16 +02:00
Daniel Mathiot
8638613f72
Merge pull request #1 from vhyrro/main
...
Core Rewrite
2021-08-21 18:24:46 +02:00
Daniel Mathiot
96319356fa
Add input_after_comment configuration
...
When set to true (default true), the cursor will go back to the start of
the added comments and trigger insert mode
2021-08-21 18:20: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