Not signed in (Sign In)

Categories

Vanilla 1.1.1 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorShawnOster
    • CommentTimeAug 18th 2007
     permalink
    Noticed a weird issue with the xml snippets.

    1. select xml document/bundle
    2. type ">", then tab
    3. snippet expands, type "item", then tab
    4. tab once more and suddenly the > snippet is invoked again

    Not sure if this is expected behaviour but it sure suprised me the first few times it happend. I can see why, because it sees the ">" before the caret but I had imagined some state machine would know that the > wasn't inserted by the user and thus shouldn't be expanded.

    Just thought I'd put it out there.
    •  
      CommentAuthortstrokes
    • CommentTimeAug 18th 2007
     permalink

    You can fix this two ways.

    Create a chain effect.
    Create a short_tag_chain.itSnippet file
    and enter this { content: '/> <${1:name} />' title: 'Short Tag' scope: 'text.xml' tab_trigger: '/>' }

    or change the short snippet tab_trigger to ‘</>’.