From 67d44f6164c76a65ecc061546a593c7ab39f2b09 Mon Sep 17 00:00:00 2001 From: Sergey Reshetnikov Date: Thu, 6 Jun 2024 03:39:22 +0500 Subject: [PATCH] Add macro --- grammar.js | 2 ++ src/node-types.json | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/grammar.js b/grammar.js index 294519c..02baa80 100644 --- a/grammar.js +++ b/grammar.js @@ -313,6 +313,8 @@ module.exports = grammar({ '__read_mostly', seq(choice('__must_hold'), '(', $.argument_list, ')'), '__ro_after_init', + '__noreturn', + '__cold', ), ), diff --git a/src/node-types.json b/src/node-types.json index d876e7c..6c67e4f 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -4315,6 +4315,10 @@ "type": "__clrcall", "named": false }, + { + "type": "__cold", + "named": false + }, { "type": "__declspec", "named": false @@ -4363,6 +4367,10 @@ "type": "__must_hold", "named": false }, + { + "type": "__noreturn", + "named": false + }, { "type": "__printf", "named": false