2
1
Fork 0

nix: update lockfile + parser for RESET and FINAL

This commit is contained in:
outfoxxed 2024-11-19 02:59:40 -08:00
parent bc2c0d5d2c
commit 862506598d
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
3 changed files with 12 additions and 7 deletions

View file

@ -22,17 +22,17 @@
]
},
"locked": {
"lastModified": 1730842284,
"narHash": "sha256-s0doicDkqzCqHvplBnjWPJtGJwajjDdfVkmmPu32l6Q=",
"lastModified": 1732015771,
"narHash": "sha256-kOKOa+wSpmJOX5GZagxF3WTmfCSB2sQOTggSjbLUgSI=",
"ref": "refs/heads/master",
"rev": "b528be94260b572919ff47d2f5e3150ebc1ee3e9",
"revCount": 368,
"rev": "f4066cb4edd96b0152ab9b2b1bec821cd5c9da57",
"revCount": 385,
"type": "git",
"url": "https://git.outfoxxed.me/outfoxxed/quickshell"
"url": "https://git.outfoxxed.me/quickshell/quickshell"
},
"original": {
"type": "git",
"url": "https://git.outfoxxed.me/outfoxxed/quickshell"
"url": "https://git.outfoxxed.me/quickshell/quickshell"
}
},
"root": {

View file

@ -162,7 +162,7 @@ impl CppParser {
Self {
class_regex: Regex::new(r#"(?<comment>(\s*\/\/\/.*\n)+)?\s*class\s+(?<name>\w+)(?:\s*:\s*public\s+((?<super>\w+)(<.+>)?)(\s*,(\s*\w+)*)*)?\s*\{(?<body>[\s\S]*?)(?!};\s*Q_ENUM)};"#).unwrap(),
macro_regex: Regex::new(r#"(?<comment>(\s*\/\/\/.*\n)+)?\s*(?<hide>QSDOC_HIDE\s)?(?<type>(Q|QML|QSDOC)_\w+)\s*(\(\s*(?<args>.*)\s*\))?;"#).unwrap(),
property_regex: Regex::new(r#"^\s*(?<type>(\w|::|, |<|>|\*)+)\*?\s+(?<name>\w+)(\s+(MEMBER\s+(?<member>\w+)|READ\s+(?<read>\w+)|WRITE\s+(?<write>\w+)|NOTIFY\s+(?<notify>\w+)|(?<const>CONSTANT)))+\s*$"#).unwrap(),
property_regex: Regex::new(r#"^\s*(?<type>(\w|::|, |<|>|\*)+)\*?\s+(?<name>\w+)(\s+(MEMBER\s+(?<member>\w+)|READ\s+(?<read>\w+)|WRITE\s+(?<write>\w+)|RESET\s+(?<reset>\w+)|NOTIFY\s+(?<notify>\w+)|(?<const>CONSTANT)|(?<final>FINAL)))+\s*$"#).unwrap(),
fn_regex: Regex::new(r#"(?<comment>(\s*\/\/\/.*\n)+)?\s*(\/\/@\s+)?Q_INVOKABLE\s+(\[\[.*\]\]\s+)?(static\s+)?(?<type>(\w|::|<|>)+\*?)\s+(?<name>\w+)\((?<params>[\s\S]*?)\)(\s*const)?;"#).unwrap(),
signal_regex: Regex::new(r#"(?<comment>(\s*\/\/\/.*\n)+)?\s*void\s+(?<name>\w+)\((?<params>[\s\S]*?)\);"#).unwrap(),
fn_param_regex: Regex::new(r#"(const\s+)?(?<type>(\w|::|<|>)+\*?)&?\s+(?<name>\w+)(,|$)"#).unwrap(),

View file

@ -105,6 +105,11 @@
"cname": "QQuickItem",
"module": "qml.QtQuick"
},
{
"name": "Rectangle",
"cname": "QQuickItem",
"module": "qml.QtQuick"
},
{
"name": "Image",
"cname": "",