This PR addresses #25. Auto edit for multi line comments failed because the strategy was not registered for the single line comment partition, but if the prefix is % this will be the current partition.
This current fix also involves not registering regular braces {} for the comment partition. This is because braces and multiline comment strategy will fire simultaneously leading to strange results when pressing enter between %{ and %}. This is the simplest solution. Of course auto edit for braces will now not work when in a comment or multi line comment, which I consider acceptable.
Otherwise we would have to sub class the strategy and apply it for braces only if there was no percent befor the brace.
This PR addresses #25. Auto edit for multi line comments failed because the strategy was not registered for the single line comment partition, but if the prefix is
%
this will be the current partition.This current fix also involves not registering regular braces
{}
for the comment partition. This is because braces and multiline comment strategy will fire simultaneously leading to strange results when pressing enter between%{
and%}
. This is the simplest solution. Of course auto edit for braces will now not work when in a comment or multi line comment, which I consider acceptable. Otherwise we would have to sub class the strategy and apply it for braces only if there was no percent befor the brace.