Skip to content
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

Backtick support #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Backtick support #15

wants to merge 1 commit into from

Conversation

koroshiya
Copy link
Contributor

Adds support for backtick highlighting, auto-complete, etc. as an alternative to double or single quotes.

Backticks are useful for avoiding escape characters within lines of dialogue which contain both single and double quotes.
eg.

`So I said, "why can't I?"`

Rather than

"So I said, \"why can't I?\""

or

'So I said, "why can\'t I?"'

Renpy itself already plays nicely with backticks. It properly lints, compiles, extracts dialogue, generates translations, etc.

@williamd1k0
Copy link
Member

Nice! (and sorry for the delay)

I tested it on Lightshow and looks nice.

Highlighting test: Lightshow

Unfortunately I don't have time now to properly review the regex :/

@koroshiya
Copy link
Contributor Author

No problem. I realize it isn't something most people would use.
Regex should be fairly straightforward. I replicated what was done for single/double quotes using backticks, so the regex should be almost identical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants