branch: externals/matlab-mode commit 360b5b8dbb3aaf57311ebec3598f542bd9e3e157 Author: John Ciolfi <john.ciolfi...@gmail.com> Commit: John Ciolfi <john.ciolfi...@gmail.com>
matlab-ts-mode: add disabled test for matlab ts issue 82 --- .../font_lock_numbers_with_word_size_issue82.m | 29 ++++++++++++++++++++++ ...nt_lock_numbers_with_word_size_issue82.skip.txt | 1 + 2 files changed, 30 insertions(+) diff --git a/tests/test-matlab-ts-mode-font-lock-files/font_lock_numbers_with_word_size_issue82.m b/tests/test-matlab-ts-mode-font-lock-files/font_lock_numbers_with_word_size_issue82.m new file mode 100644 index 0000000000..7e23f48d5e --- /dev/null +++ b/tests/test-matlab-ts-mode-font-lock-files/font_lock_numbers_with_word_size_issue82.m @@ -0,0 +1,29 @@ +% -*- matlab-ts -*- + +% See: https://github.com/acristoffers/tree-sitter-matlab/issues/82 + +% Doc https://www.mathworks.com/help/matlab/matlab_prog/specify-hexadecimal-and-binary-numbers.html +% +% To specify unsigned 8-, 16-, 32-, and 64-bit integer types, use the suffixes u8, u16, u32, and u64. +% To specify signed 8-, 16-, 32-, and 64-bit integer types, use the suffixes s8, s16, s32, and s64. + +a = 0xFFs8 +b = 0xFFs16 +c = 0xFFs32 +d = 0xFFs64 + +e = 0xFFu8 +f = 0xFFu16 +g = 0xFFu32 +h = 0xFFu64 + +i = 0b0101s8 +j = 0b0101s16 +k = 0b0101s32 +l = 0b0101s64 + +m = 0b0101u8 +n = 0b0101u16 +o = 0b0101u32 +p = 0b0101u64 + diff --git a/tests/test-matlab-ts-mode-font-lock-files/font_lock_numbers_with_word_size_issue82.skip.txt b/tests/test-matlab-ts-mode-font-lock-files/font_lock_numbers_with_word_size_issue82.skip.txt new file mode 100644 index 0000000000..ec073df8f4 --- /dev/null +++ b/tests/test-matlab-ts-mode-font-lock-files/font_lock_numbers_with_word_size_issue82.skip.txt @@ -0,0 +1 @@ +% See: https://github.com/acristoffers/tree-sitter-matlab/issues/82