-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] New Ren'Py grammar #76
Conversation
* Adds Ren'py comments and comments code tags Ej TODO, FIXME etc * Use the Python grammar in RenPy's Python statements (python, init python, define and default)
Match strings: - Double quoted (block and line) - Single quoted (block and line) - Back quoted (block and line)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small bugfix for init levels
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added highlighting for the init level and the storemodule!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: multimokia <multimokia3@gmail.com>
Some features where not captured and others where dismissed. * Block ending is now correctly detected in nested blocks * Block is also detected on partial invalid parameters * Block is now correctly detected on all variants * Block now correctly highlights any optional keywords in any order * Single line now correctly detects define and default only if there is no other character in front * Single line now highlights the variable it defines (Python highlighting seems to skip this for some reason?)
Adds back all the Renpy keywords that can be used outside of a python block
* fixed tabs * label is now defined as a normal keyword instead of a control flow keyword * label now supports having parameters * labels can now also start with . _ or [a-zA-Z] * stores can only start with [a-zA-Z_]
Improved block capture and keywords
* Added esbenp.prettier-vscode extension as a recommended plugin * Updated to eslint instead of tslint * Turned on format document on save * Added .editorconfig for formatting options
Enable forced, consistent formatting
Adds back escaped chars, unicode, placeholders and tags. Still needs some improvements
string tags: * font tag is not self-closing * fixed comment tag * numbers like .5 where the 0 is left out are also valid additional keywords: * layeredimage, voice, voice sustain, translate Added voice to the say-statement. (kinda hacky atm, be else it would be considered a character) Labels have an optional hide clause
3 big one's left, then we are feature complete :D |
…generated-renpy-files-from-the-workspace-folder added "Exclude Compiled Files From Workspace"
Should be fixed now :) |
On Monday I want to release the first pre-release of 2.2 (2.1 pre-release), so it will be easier to test for anyone interested. |
Prepare v2.1.0 pre-release
Awesome! |
Fixed line with trailing spaces causing block to break
Hi @multimokia. Thanks for yet another bug report! Since this is branch now live as pre release I would prefer if you make this an official issue ticket. |
Can do! |
🤔 Maybe I should create a |
We could simply rename this branch. But a |
Done! I have renamed the branch to |
Attempt to re-implement RenPy grammar.
Done:
TODO
,FIXME
, etcpython
,init python
,define
, anddefault
). Allow Python 3 Syntax Support python 3 syntax #75 and Support annotations #71single
,double
andback
(block and single lines).TODO
Add support for type annotation in semantics.Call/jump statementsATL (+ transform, image, show, scene)with/hide/at/from clausesSay statementsCamera statementsAudio statements (play, stop, queue)Any contribution to the
new-syntax
branch is welcome. Feedback and testing are also appreciated.