Skip to content

Commit 20cb22b

Browse files
authored
Merge branch 'main' into ci/st4075
2 parents 66bbfbc + 86c193a commit 20cb22b

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [Excel formula for Sublime Text][gh]
1+
# [Spreadsheet Formula for Sublime Text][gh]
22

33
Spreadsheet formula syntax highlighting for Sublime Text. This syntax was originally
44
intended to only provide support for Excel formulae, but now also supports both Google Sheets

support/FunctionTranslatorDevTools.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// To be used with the MS Edge debugger you can open in the Function Translator add-in for Excel.
22
// Starting point is to first click "References" at the top left, then click settings at the bottom right.
33

4+
// Sleep func to allow pages to load since I'd need to learn about async/sync
5+
// and event listening in JS from the ground up otherwise
46
function sleep(ms) {
57
return new Promise((resolve) => setTimeout(resolve, ms));
68
}
@@ -31,7 +33,7 @@ for (let i = 1; i <= 2 /*numberOfOptions*/; i++) {
3133
// Get the reference table
3234
let thisRefTable = document.getElementById("referenceTable");
3335

34-
// Query all elements inside the <tbody> and filter those with a 'title' attribute, then do some
36+
// Query all elements inside the <tbody> and filter those with a `title` or `lang` attribute, then do some
3537
// cursed highjacking of the map function cause idc to enumerate a proper for-each.
3638
titlesArr = Array.from(thisRefTable.querySelectorAll("[title], [lang]")).map(
3739
(el) => {

tests/syntax_test_excel.xls.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ TEXTJOIN(";",FALSE,valmax)
681681
' ^^ meta.reference.cell.sheet storage.type.sheet
682682
' <- keyword.operator.assignment.sheet
683683

684-
='^'!A1
684+
='&'!A1
685685
'^^^^ meta.reference.sheet
686686
'^ punctuation.definition.annotation.begin.sheet
687687
' ^ entity.name.struct.sheet

tests/syntax_test_google.gsheet.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ TEXTJOIN(";",FALSE,valmax)
702702
' ^ punctuation.separator.sequence.sheet
703703
' ^^ meta.reference.cell.sheet storage.type.sheet
704704

705-
='^'!A1
705+
='&'!A1
706706
'^^^^ meta.reference.sheet
707707
'^ punctuation.definition.annotation.begin.sheet
708708
' ^ entity.name.struct.sheet

tests/syntax_test_libre_references.localc.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
' ^^ meta.reference.cell.sheet storage.type.sheet
9191
' <- keyword.operator.assignment.sheet
9292

93-
='^'!A1
93+
='&'!A1
9494
'^^^^^^ meta.reference - meta.reference meta.reference
9595
'^^^^ meta.reference.sheet
9696
'^ punctuation.definition.annotation.begin.libre

0 commit comments

Comments
 (0)