MadcapJake / language-perl6fe

»ö« Atom Perl 6 Support - Forgotten Edition »ö«
https://github.com/perl6/atom-language-perl6
Other
16 stars 3 forks source link

Get all q[…] and qq[…] escape delimiters and for qq make sure \t and others escape #46

Open samcv opened 7 years ago

samcv commented 7 years ago

Example Code

q< \> > my $var;

Status of my branch:

### This is to test the q qq and Q quoting
### Lines commented out with only one # are examples of improper highlighting that *should*
### Break the ending delimiter
## {{ }}
#Q{{ \t \ \\ \{{ \}}  }}
Q{{  \t \ \\          }}
q{{  \t \ \\ \{{ \}}  }}
qq{{ \t \ \\ \{{ \}}  }}
## (( ))
#Q(( \t \ \\ \(( \))  ))
Q((  \t \ \\          ))
q((  \t \ \\ \(( \))  ))
qq(( \t \ \\ \(( \))  ))
## [[ ]]
#Q[[ \t \ \\ \[[ \]]  ]]
Q[[  \t \ \\          ]]
q[[  \t \ \\ \[[ \]]  ]]
qq[[ \t \ \\ \[[ \]]  ]]
## << >>
#Q<< \t \\ \<< \>>    >>
#Q<<  \t \ \\          >>
q<<  \t \ \\ \<< \>>  >>
qq<< \t \ \\ \<< \>>  >>
## < >
#Q< \t \ \\       >
#Q<  \t \ \\ \< \> >
q<  \t \ \\ \< \> >
qq< \t \ \\ \< \> >
## { }
#Q{ \t \ \\ \{ \} }
#Q{  \t \ \\       }
q{  \t \ \\ \{ \} }
qq{ \t \ \\ \{ \} }
## " "
#Q"  \t \ \\ \" "
q"  \t \ \\ \" "
qq" \t \ \\ \" "
## ' '
#Q'  \t \\ \' '
#Q'  \t \ \\    '
q'  \t \ \\ \' '
qq' \t \ \\ \' '
## / /
#Q/ \t \ \\ \/ /
#Q/  \t \ \\    /
q/  \t \ \\ \/ /
qq/ \t \ \\ \/ /