Smart bracket completion according to language

Bug #1200361 reported by Otto Robba
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Scratch
Confirmed
Wishlist
Unassigned

Bug Description

I really like Scratch's bracket completion plugin, it is very useful.

Alas, a bug.

In Lua, auto completion of single quotes within double quotes is troublesome because it means that I have to erase the extra single quote when typing strings. If it were possible to have the bracket completion be smarter about it according to the language used, that would be fantastic.

For example:

validstring = "Hi there, I'm a computer program"

is currently like this with auto complete

validstring = "Hi there, I''m a computer program"

Revision history for this message
Mario Guerriero (mefrio-g) wrote :

it is difficult to make something standardized for all languages...

Changed in scratch:
importance: Undecided → Wishlist
milestone: none → 2.1
status: New → Confirmed
Revision history for this message
Otto Robba (otto-ottorobba) wrote :

Oh, I agree. As a general rule of thumb, doing like Sublime Text does might be effective for most.

If using quotes within others quote (as in " ' " or ' " '), don't autocomplete. Otherwise, do. But then again, that is how they do it and I don't know if it conflicts with other programming languages or if it is feasible.

Changed in scratch:
milestone: 2.0.1 → 2.1
Cody Garver (codygarver)
Changed in scratch:
milestone: isis-beta1 → feature-future
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.