Regular Expressions 101

Community Patterns

vscode-openscad | Grammar | Single Line Comment With Customizer

0

Regular Expression
PCRE (PHP <7.3)

/
(?x) (\/\/[ \t]*) ( \[(?: (?:[-]?\d+(?:.\d)*)(?:[ \t]*:[ \t]*-?\d+(?:.\d)*){0,2} | (?:(?:[^:,]+:)?[^:,]+,)*(?:(?:[^:,]+:)?[^:,]+) )\] ) [ \t]*$\n?
/
gi

Description

vscode-openscad Syntax: Single Line Comment With Customizer

Regexp notebook for working with scad language grammar in vscode-openscad VS Code extension, includes regexp expression and tests.

Scope Info:

- name: comment.line.double-slash.scad
  captures:
    '1': {name: punctuation.definition.comment.scad}
    '2': {name: keyword.other.customizer.scad}
Submitted by disk0 (www.github.com/disco0) - 4 years ago