Update lua palette and corpus examples.

This commit is contained in:
Michael Welford 2021-11-27 16:25:04 +10:30
parent 96592a6156
commit 6bb8a49149
3 changed files with 14 additions and 8 deletions

View File

@ -1,6 +1,10 @@
-- in-place quicksort
-- show lsp warning
thing
-- @todo do the thing
function quicksort(t, start, endi)
function quicksort(t, start, endi, hey)
start, endi = start or 1, endi or #t
--partition w.r.t. first element
if(endi - start < 1) then return t end
@ -15,6 +19,7 @@ function quicksort(t, start, endi)
pivot = pivot + 1
end
end
t = quicksort(t, start, pivot - 1)
return quicksort(t, pivot + 1, endi)
end
@ -32,7 +37,6 @@ function quicksort(t)
else b[#b+1]=v
end
end
a=quicksort(a)
c=quicksort(c)
for _,v in ipairs(b) do a[#a+1]=v end
for _,v in ipairs(c) do a[#a+1]=v end
@ -40,6 +44,5 @@ function quicksort(t)
end
-- on purpose errors to check LSP
re
function

View File

@ -25,7 +25,7 @@ class CcspUserService implements CcspUserServiceInterface {
/**
* {@inheritdoc}
*/
public static function createReturnReviewer($reviewer_id, $reviewer_name = '', $email = '') {
public static function createReturnReviewer($reviewer_id, $reviewer_name = '', $email = '', int $unused) {
// @TODO fix this up.
$reviewer = $this->loadUserByName($reviewer_id);
if (!empty($reviewer)) {
@ -43,8 +43,9 @@ class CcspUserService implements CcspUserServiceInterface {
->setEmail($email)
->save();
define('CONST', 1); //thing
// Here is a comment
//
Here is a change
$a_flag = FALSE;
$a_number = 0;
@ -59,3 +60,4 @@ class CcspUserService implements CcspUserServiceInterface {
}
}

View File

@ -20,7 +20,8 @@ vim.api.nvim_set_var('falcon.palette', {
branch = '#99a4bc',
method = '#a1968a',
path = '#787882',
info = '#a1968a',
error = '#a82400',
warning = '#c99c40'
info = '#787882',
hint = '#847b73',
error = '#9e1e00',
warning = '#bc8f3f'
})