aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2021-03-12 16:38:54 +0100
committerDanielGavin <danielgavin5@hotmail.com>2021-03-12 16:38:54 +0100
commit9b01ac03a7efe6a6589c49a4ce02dff3f723c38a (patch)
tree4c716902376f950d338c3e13c2f26c004a0083fd /src/common
parent00ccd7e03e17dac40efb9b34a048d968dd77c218 (diff)
ran odinfmt again(it didn't newline at th eof)
Diffstat (limited to 'src/common')
-rw-r--r--src/common/allocator.odin2
-rw-r--r--src/common/ast.odin2
-rw-r--r--src/common/config.odin2
-rw-r--r--src/common/fuzzy.odin8
-rw-r--r--src/common/pool.odin2
-rw-r--r--src/common/position.odin2
-rw-r--r--src/common/pretty.odin2
-rw-r--r--src/common/sha1.odin2
-rw-r--r--src/common/track_allocator.odin2
-rw-r--r--src/common/types.odin2
-rw-r--r--src/common/uri.odin2
11 files changed, 16 insertions, 12 deletions
diff --git a/src/common/allocator.odin b/src/common/allocator.odin
index 0adbedf..a7bfae7 100644
--- a/src/common/allocator.odin
+++ b/src/common/allocator.odin
@@ -118,4 +118,4 @@ scratch_allocator :: proc (allocator: ^Scratch_Allocator) -> mem.Allocator {
procedure = scratch_allocator_proc,
data = allocator,
};
-} \ No newline at end of file
+}
diff --git a/src/common/ast.odin b/src/common/ast.odin
index 98f2d84..c807ce8 100644
--- a/src/common/ast.odin
+++ b/src/common/ast.odin
@@ -611,4 +611,4 @@ node_equal_node :: proc (a, b: ^ast.Node) -> bool {
}
return false;
-} \ No newline at end of file
+}
diff --git a/src/common/config.odin b/src/common/config.odin
index ddf4d2a..df6ddb1 100644
--- a/src/common/config.odin
+++ b/src/common/config.odin
@@ -10,4 +10,4 @@ Config :: struct {
verbose: bool,
debug_single_thread: bool,
enable_semantic_tokens: bool, //This will be removed when vscode client stops sending me semantic tokens after disabling it in requests initialize.
-} \ No newline at end of file
+}
diff --git a/src/common/fuzzy.odin b/src/common/fuzzy.odin
index f0b4a82..51c43ff 100644
--- a/src/common/fuzzy.odin
+++ b/src/common/fuzzy.odin
@@ -27,6 +27,7 @@ FuzzyCharRole :: enum (u8)
// Stray control characters or impossible states.
// Part of a word segment, but not the first character.
// The first character of a word segment.
+
{
Unknown = 0,
Tail = 1,
@@ -38,6 +39,7 @@ FuzzyCharType :: enum (u8)
// Before-the-start and after-the-end (and control chars).
// Lowercase letters, digits, and non-ASCII bytes.
// Uppercase letters.
+
{
Empty = 0,
Lower = 1,
@@ -63,7 +65,9 @@ FuzzyMatcher :: struct {
char_roles: []u8 =
// clang-format off
// Curr= Empty Lower Upper Separ
-/*Prev=Empty */{
+/*Prev=Empty */
+
+{
0x00,0xaa,0xaa,0xff, // At start, Lower|Upper->Head
/*Prev=Lower */0x00,0x55,0xaa,0xff, // In word, Upper->Head;Lower->Tail
/*Prev=Upper */0x00,0x55,0x59,0xff, // Ditto, but U(U)U->Tail
@@ -413,4 +417,4 @@ fuzzy_allow_match :: proc (matcher: ^FuzzyMatcher, p: int, w: int, last: int) ->
}
return true;
-} \ No newline at end of file
+}
diff --git a/src/common/pool.odin b/src/common/pool.odin
index 6789b63..422b8f7 100644
--- a/src/common/pool.odin
+++ b/src/common/pool.odin
@@ -153,4 +153,4 @@ pool_wait_and_process :: proc (pool: ^Pool) {
}
pool_join(pool);
-} \ No newline at end of file
+}
diff --git a/src/common/position.odin b/src/common/position.odin
index 9145091..c409b2f 100644
--- a/src/common/position.odin
+++ b/src/common/position.odin
@@ -271,4 +271,4 @@ get_end_line_u16 :: proc (document_text: []u8) -> int {
}
return utf16_idx;
-} \ No newline at end of file
+}
diff --git a/src/common/pretty.odin b/src/common/pretty.odin
index ff0d5ff..929bf80 100644
--- a/src/common/pretty.odin
+++ b/src/common/pretty.odin
@@ -237,4 +237,4 @@ print_ast_node :: proc (node: ^ast.Node, depth: int, src: []byte, newline := fal
case:
fmt.panicf("Unhandled node kind: %T", n);
}
-} \ No newline at end of file
+}
diff --git a/src/common/sha1.odin b/src/common/sha1.odin
index 80a8765..67cbc4b 100644
--- a/src/common/sha1.odin
+++ b/src/common/sha1.odin
@@ -294,4 +294,4 @@ sha1_hash :: proc (data: []byte) -> [20]byte {
copy(ret[:], result[:]);
return ret;
-} \ No newline at end of file
+}
diff --git a/src/common/track_allocator.odin b/src/common/track_allocator.odin
index 69c0e86..afb1de2 100644
--- a/src/common/track_allocator.odin
+++ b/src/common/track_allocator.odin
@@ -189,4 +189,4 @@ memleak_dump :: proc (memleak_alloc: mem.Allocator, dump_proc: proc (message: st
log_dump :: proc (message: string, user_data: rawptr) {
log.info(message);
-} \ No newline at end of file
+}
diff --git a/src/common/types.odin b/src/common/types.odin
index 4cdfc24..ae8da35 100644
--- a/src/common/types.odin
+++ b/src/common/types.odin
@@ -24,4 +24,4 @@ Error :: enum
WorkspaceFolder :: struct {
name: string,
uri: string,
-} \ No newline at end of file
+}
diff --git a/src/common/uri.odin b/src/common/uri.odin
index b69ae92..b979634 100644
--- a/src/common/uri.odin
+++ b/src/common/uri.odin
@@ -155,4 +155,4 @@ decode_percent :: proc (value: string, allocator: mem.Allocator) -> (string, boo
}
return strings.to_string(builder), true;
-} \ No newline at end of file
+}