Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

fixed issue #170, hopefully #176

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions grammars/c++.cson
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
'include': '#strings'
}
{
'match': '\\b(friend|explicit|virtual|override|final|noexcept)\\b'
'match': '\\b(friend|explicit|override|final|noexcept)\\b'
'name': 'storage.modifier.cpp'
}
{
Expand Down Expand Up @@ -277,7 +277,7 @@
]
}
{
'begin': '\\b(class|struct)\\b\\s*([_A-Za-z][_A-Za-z0-9]*\\b)?+(\\s*:\\s*(public|protected|private)\\s*([_A-Za-z][_A-Za-z0-9]*\\b)((\\s*,\\s*(public|protected|private)\\s*[_A-Za-z][_A-Za-z0-9]*\\b)*))?'
'begin': '\\b(class|struct)\\b\\s*([_A-Za-z][_A-Za-z0-9]*\\b)?+(\\s*:\\s*(public|protected|private|virtual)\\s*([_A-Za-z][_A-Za-z0-9]*\\b)((\\s*,\\s*(public|protected|private)\\s*[_A-Za-z][_A-Za-z0-9]*\\b)*))?'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You forgot to add virtual to the second time the public|protected|private list occurs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added :)

'beginCaptures':
'1':
'name': 'storage.type.cpp'
Expand All @@ -290,7 +290,7 @@
'6':
'patterns': [
{
'match': '(public|protected|private)'
'match': '(public|protected|private|virtual)'
'name': 'storage.type.modifier.cpp'
}
{
Expand Down