Sfoglia il codice sorgente

Add support for leading attribute for friend method declaration.

pull/366/head
Dappster 3 giorni fa
parent
commit
a780097c5c
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      grammar.js

+ 2
- 0
grammar.js Vedi File

@ -103,6 +103,7 @@ module.exports = grammar(C, {
[$.field_expression, $.template_method, $.template_type],
[$.field_expression, $.template_method],
[$.qualified_field_identifier, $.template_method, $.template_type],
[$._declaration_modifiers, $.friend_declaration],
[$.type_specifier, $.template_type, $.template_function, $.expression],
[$.splice_type_specifier, $.splice_expression],
],
@ -655,6 +656,7 @@ module.exports = grammar(C, {
pure_virtual_clause: _ => seq('=', /0/, ';'),
friend_declaration: $ => seq(
optional($.attribute_declaration),
optional('constexpr'),
'friend',
choice(

Caricamento…
Annulla
Salva