Skip to content

Commit

Permalink
[soy mode] Add velog tag
Browse files Browse the repository at this point in the history
  • Loading branch information
axellew committed Jun 17, 2021
1 parent f347fb3 commit 676b510
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions mode/soy/soy.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"delcall": { soyState: "templ-ref" },
"log": {},
"element": { variableScope: true },
"velog": {},
};

var indentingTags = Object.keys(tags).filter(function(tag) {
Expand Down
3 changes: 3 additions & 0 deletions mode/soy/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,4 +308,7 @@

MT('import',
'[keyword import] {[def Name], [variable Person] [keyword as] [def P]} [keyword from] [string \'examples/proto/example.proto\'];');

MT('velog',
'[keyword {velog] [variable-2&error $data][keyword }] Logged [keyword {/velog}]');
})();

0 comments on commit 676b510

Please sign in to comment.