aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-10-14 17:19:08 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-10-14 17:19:08 -0700
commitc53cc337cc73277c94fb001e7990bd0e69897b50 (patch)
treed3fa2e1d57a5320658b09a3e32a6b89d61c80c69 /src
parent80f51bb84e6745e06a658467fd4458f1e13e4f85 (diff)
simplify tokenizing of {..}**..
Diffstat (limited to 'src')
-rw-r--r--src/intertyper.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/intertyper.js b/src/intertyper.js
index 94a096f3..beafda28 100644
--- a/src/intertyper.js
+++ b/src/intertyper.js
@@ -63,12 +63,7 @@ function tokenize(text, lineNum) {
tokens.splice(openBrace, tokens.length-openBrace+1);
tokens.push(token);
token.type = '{';
- token.text = '{ ' + token.text + ' }';
- var pointingLevelsToAdd = pointingLevels(text) - pointingLevels(token.text);
- while (pointingLevelsToAdd > 0) {
- token.text += '*';
- pointingLevelsToAdd--;
- }
+ token.text = '{ ' + token.text + ' ' + text;
lastToken = token;
} else {
tokens.push(token);