Sublime Forum

Perl/Highlight issue

#1

You can see, that string in FilesMatch is wrapped in quotes ", but for some reason all other part of file highlighted as a string till the next quote.
see attached screenshot

P.S. highlighting as PERL


Apache/PHP/Drupal settings:

Protect files and directories from prying eyes.

<FilesMatch “.(engine|inc|info|install|make|module|profile|test|po|sh|.sql|theme|tpl(.php)?|xtmpl)$|^(…|Entries.*|Repository|Root|Tag|Template)$”>
Order allow,deny

asdfasf asdffasdfasdfsfsaf
RewriteCond %{REQUEST_FILENAME}.gz -s
RewriteRule ^(.*).js $1.js.gz [QSA]

# Serve correct content types, and prevent mod_deflate double gzip.
RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1]
RewriteRule \.js\.gz$ - [T=text/javascript,E=no-gzip:1]

<FilesMatch "(\.js\.gz|\.css\.gz)$">
  # Serve correct encoding type.
  Header set Content-Encoding gzip
  # Force proxies to cache gzipped & non-gzipped css/js files separately.
  Header append Vary Accept-Encoding
</FilesMatch>

0 Likes

#2

Seems to work in my custom Perl syntax. See link in my sig.

This isn’t Perl though, so that’s really just a coincidence.

0 Likes