diff options
Diffstat (limited to 'src/lsp')
| -rw-r--r-- | src/lsp/json_rpc.h | 8 | ||||
| -rw-r--r-- | src/lsp/lsp_index.h | 22 |
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. |
