aboutsummaryrefslogtreecommitdiff
path: root/src/parser.js
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-09-05 17:05:35 -0700
committeralon@honor <none@none>2010-09-05 17:05:35 -0700
commited6f0355817810a757e4e464474e03c69264ce5f (patch)
tree322d707b22cd75d594d78652920da05cca1b1c67 /src/parser.js
parent3e6c745b828932f237e472c484bb2ac2abfb8e3e (diff)
snippets work
Diffstat (limited to 'src/parser.js')
-rw-r--r--src/parser.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/parser.js b/src/parser.js
index 491e31f5..b9873175 100644
--- a/src/parser.js
+++ b/src/parser.js
@@ -1942,8 +1942,9 @@ function JSify(data) {
substrate.addZyme('FunctionStub', {
selectItem: function(item) { return item.intertype == 'functionStub' && !item.JS },
processItem: function(item) {
- if (item.ident in Snippets) {
- item.JS = item.ident + ' = ' + Snippets[item.ident].toString();
+ var shortident = item.ident.substr(1);
+ if (shortident in Snippets) {
+ item.JS = item.ident + ' = ' + Snippets[shortident].toString();
} else {
item.JS = '// stub for ' + item.ident;
}