fluentCODE / ScrawlIssues

Issue Tracker for Scrawl by fluentCODE
14 stars 0 forks source link

Auto-inserted characters occurring in strings/comments #117

Closed aarondandy closed 9 years ago

aarondandy commented 9 years ago

In a JS file when typing the following, Scrawl really wants to add in some extra quotes for me.

Example: Typing // Poop.js, the coolest new framework you haven't heard of will end up with an extra ' at the end.

Example: When there is existing JS of var thing = 'poop; which is missing a ' when I add the missing ' in I get two instead of one.

pauljz commented 9 years ago

We'll probably fix this generically by just not auto-inserting characters in ranges that the lexer detects as strings or comments.

In some languages we'll want to have a subset that still occur, e.g. curly braces for string interpolation in Ruby or C#6, but that's an edge case that we can support later with code engines.

stirno commented 9 years ago

In the dev branch (that we'll be merging back real soon) we no longer insert inside strings/comments and the deletion logic is different.

aarondandy commented 9 years ago

:+1: