Gimp.Scanner.prototype.parse_identifier

function parse_identifier(): [ok: Boolean, identifier: String] {
    // Gjs wrapper for gimp_scanner_parse_identifier()
}
  

Since 2.4

ok

true if the next token is an identifier and if its value matches identifier.

identifier

the expected identifier.