Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Introducing "comment blocks" to the syntax file.

This allows us to leverage the syntax file to do better manipulation of
multiple comment lines.
  • Loading branch information...
commit 621f9cf1c848d2f6566e251544fb8a4c7317b821 1 parent 1934973
Pieter van de Bruggen authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 Perl.syntax
6 Perl.syntax
View
@@ -166,7 +166,11 @@ uuid: EDBFE125-6B1C-11D9-9189-000D93589AF6
firstLineMatch: ^#!.*\bperl\b
patterns:
- include: "#nested_braces"
-- include: "#line_comment"
+- name: meta.comment.block.perl
+ begin: '^(?=(\s*)#)'
+ end: '^(?=\1[^#])'
+ patterns:
+ - include: '#line_comment'
- name: comment.block.documentation.perl
begin: ^=
captures:
Please sign in to comment.
Something went wrong with that request. Please try again.