{"action":"closed","issue":{"url":"https://api.github.com/repos/SirVer/ultisnips/issues/581","labels_url":"https://api.github.com/repos/SirVer/ultisnips/issues/581/labels{/name}","comments_url":"https://api.github.com/repos/SirVer/ultisnips/issues/581/comments","events_url":"https://api.github.com/repos/SirVer/ultisnips/issues/581/events","html_url":"https://github.com/SirVer/ultisnips/issues/581","id":109674943,"number":581,"title":"How to transform an input of a variable, not using mirror?","user":{"login":"lvarayut","id":4281887,"avatar_url":"https://avatars.githubusercontent.com/u/4281887?v=3","gravatar_id":"","url":"https://api.github.com/users/lvarayut","html_url":"https://github.com/lvarayut","followers_url":"https://api.github.com/users/lvarayut/followers","following_url":"https://api.github.com/users/lvarayut/following{/other_user}","gists_url":"https://api.github.com/users/lvarayut/gists{/gist_id}","starred_url":"https://api.github.com/users/lvarayut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvarayut/subscriptions","organizations_url":"https://api.github.com/users/lvarayut/orgs","repos_url":"https://api.github.com/users/lvarayut/repos","events_url":"https://api.github.com/users/lvarayut/events{/privacy}","received_events_url":"https://api.github.com/users/lvarayut/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-04T11:02:06Z","updated_at":"2015-10-04T12:29:55Z","closed_at":"2015-10-04T12:29:55Z","body":"I'm trying to uppercase an input of a variable, so, the input will automatically be uppercase. What I have tried so far is using the transformation.\r\n\r\n```cson\r\nsnippet csec \"Section comment\" b\r\n/* ==========================================================================\r\n   ${1/\\w+/\\U/}\r\n   ========================================================================== */\r\nendsnippet\r\n```\r\n\r\nHowever, I got the syntax error. If I defined the variable before as shown below, it worked perfectly fine.\r\n\r\n```cson\r\nsnippet com_sec \"Section comment\" b\r\n/* ==========================================================================\r\n   $1\r\n   ${1/\\w+/\\U/}\r\n   ========================================================================== */\r\nendsnippet\r\n```\r\n\r\nMy question is how to transform on the variable itself to be uppercase without using mirror? Any help would be appreciated."}}