Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %YAML 1.2
- ---
- # See http://www.sublimetext.com/docs/3/syntax.html
- file_extensions:
- - pcr
- scope: source.fullprof
- variables:
- number: '\b[0-9E\-\.]+\b'
- contexts:
- main:
- - include: commands
- - include: special-cards
- - include: comments
- commands:
- - match: '^(COMM)\s(.*)$'
- captures:
- 1: keyword.other.pcr
- 2: entity.name.control-file.pcr
- - match: '^(Name)(:)\s*(\w+)'
- captures:
- 1: keyword.other.pcr
- 2: punctuation.separator.pcr
- 3: entity.name.phase-name.pcr
- special-cards:
- - include: scale-card-start
- scale-card-start:
- - match: |-
- (?xi)
- ^(!)\s*
- (Scale)\s*
- (Shape1)\s*
- (Bov)\s*
- (Str1)\s*
- (Str2)\s*
- (Str3)\s*
- (Strain-Model)\s*$
- captures:
- 1: punctuation.definition.comment.pcr
- 2: keyword.other.pcr
- 3: keyword.other.pcr
- 4: keyword.other.pcr
- 5: keyword.other.pcr
- 6: keyword.other.pcr
- 7: keyword.other.pcr
- 8: keyword.other.pcr
- scope: comment.line.pcr
- push: scale-card-1
- scale-card-1:
- - meta_content_scope: meta.block.scale-card-1.pcr
- - match: |-
- (?xi)
- ({{number}})\s*
- ({{number}})\s*
- ({{number}})\s*
- ({{number}})\s*
- ({{number}})\s*
- ({{number}})\s*
- ({{number}})\s*
- captures:
- 1: constant.numeric.pcr
- 2: constant.numeric.pcr
- 3: constant.numeric.pcr
- 4: constant.numeric.pcr
- 5: constant.numeric.pcr
- 6: constant.numeric.pcr
- 7: constant.numeric.pcr
- set: scale-card-2
- scale-card-2:
- - meta_content_scope: meta.block.scale-card-2.pcr
- - match: |-
- (?xi)
- ({{number}})\s*
- ({{number}})\s*
- ({{number}})\s*
- ({{number}})\s*
- ({{number}})\s*
- ({{number}})\s*
- captures:
- 1: constant.numeric.pcr
- 2: keyword.other.pcr
- 3: constant.numeric.pcr
- 4: constant.numeric.pcr
- 5: constant.numeric.pcr
- 6: constant.numeric.pcr
- scope: meta.block.scale-card-2.pcr
- pop: true
- comments:
- # Generic in-line comment
- - match: '#'
- scope: punctuation.definition.comment.pcr
- push:
- - meta_scope: comment.line.pcr
- - match: \n
- pop: true
- # Generic card comment
- - match: '!'
- scope: punctuation.definition.comment.pcr
- push:
- - meta_scope: comment.line.pcr
- - match: \n
- pop: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement