summaryrefslogtreecommitdiff
path: root/src/lsp
diff options
context:
space:
mode:
authorZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-27 01:22:42 +0000
committerZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-27 01:22:42 +0000
commit938773d9cc062fd028f6560b1127a2ecd23f61c3 (patch)
tree403aacd629975440ba23a645975c34a141d634ee /src/lsp
parent2f47bdf7f49f05bd421e4182635f489c8cae01b3 (diff)
Fixed constant hex/oct bug + Fixed some of the examples (work in progress) + added bootloader example (I will add some docs)
Diffstat (limited to 'src/lsp')
-rw-r--r--src/lsp/json_rpc.h8
-rw-r--r--src/lsp/lsp_index.h22
2 files changed, 15 insertions, 15 deletions
diff --git a/src/lsp/json_rpc.h b/src/lsp/json_rpc.h
index 98d7ec1..0a5c282 100644
--- a/src/lsp/json_rpc.h
+++ b/src/lsp/json_rpc.h
@@ -4,10 +4,10 @@
/**
* @brief Handle a raw JSON-RPC request string.
- *
- * Parses the request, routes it to the appropriate handler (initialize, textDocument/didChange, etc.),
- * and sends back the response to stdout.
- *
+ *
+ * Parses the request, routes it to the appropriate handler (initialize, textDocument/didChange,
+ * etc.), and sends back the response to stdout.
+ *
* @param json_str Null-terminated JSON request string.
*/
void handle_request(const char *json_str);
diff --git a/src/lsp/lsp_index.h b/src/lsp/lsp_index.h
index 1b45c57..5702503 100644
--- a/src/lsp/lsp_index.h
+++ b/src/lsp/lsp_index.h
@@ -18,15 +18,15 @@ typedef enum
*/
typedef struct LSPRange
{
- int start_line; ///< Start line (1-based).
- int start_col; ///< Start column (1-based).
- int end_line; ///< End line.
- int end_col; ///< End column (approximated).
- RangeType type; ///< Type of range (def or ref).
- int def_line; ///< Line of definition (if reference).
- int def_col; ///< Column of definition (if reference).
- char *hover_text; ///< Tooltip text / signature.
- ASTNode *node; ///< Associated AST node.
+ int start_line; ///< Start line (1-based).
+ int start_col; ///< Start column (1-based).
+ int end_line; ///< End line.
+ int end_col; ///< End column (approximated).
+ RangeType type; ///< Type of range (def or ref).
+ int def_line; ///< Line of definition (if reference).
+ int def_col; ///< Column of definition (if reference).
+ char *hover_text; ///< Tooltip text / signature.
+ ASTNode *node; ///< Associated AST node.
struct LSPRange *next;
} LSPRange;
@@ -35,8 +35,8 @@ typedef struct LSPRange
*/
typedef struct LSPIndex
{
- LSPRange *head; ///< First range in the file.
- LSPRange *tail; ///< Last range in the file.
+ LSPRange *head; ///< First range in the file.
+ LSPRange *tail; ///< Last range in the file.
} LSPIndex;
// API.