all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob f9680886c57b5550cc3158f38db8ddcd15f9fbfb 1795 bytes (raw)
name: test/lisp/progmodes/typescript-ts-mode-resources/font-lock.ts 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
 
// Test assignment left-hand side fontification
const assignment = (): number => {
  //  ^ font-lock-function-name-face
  //                   ^ font-lock-type-face
  let foo = 0;
  //   ^ font-lock-variable-name-face
  foo += 1;
  //^ font-lock-variable-name-face
  let obj: {[key: string]: any} = {};
  //  ^ font-lock-variable-name-face
  //          ^ font-lock-property-name-face
  //                ^ font-lock-type-face
  //                        ^ font-lock-type-face
  obj.x.y = 0;
  //^ font-lock-variable-name-face
  //  ^ font-lock-property-name-face
  //    ^ font-lock-property-name-face
  ++obj.x++;
  // ^ font-lock-variable-name-face
  //    ^ font-lock-property-name-face
  arr[obj.x * obj.x] = 1;
  //^ font-lock-variable-name-face
  //   ^ font-lock-variable-use-face
  //      ^ font-lock-property-use-face
  let x = 0, y = 0, arr = [0,0], mat = [[0],[0]];
  [ x, y] = [y, x];
  //^ font-lock-variable-name-face
  //   ^ font-lock-variable-name-face
  if ((x = 1)) x++;
  //   ^ font-lock-variable-name-face
  //           ^ font-lock-variable-name-face
  arr[arr[0]] = 2;
  //^ font-lock-variable-name-face
  //   ^ font-lock-variable-use-face
  //      ^ font-lock-number-face
  ++mat[x][arr[0]];
  // ^ font-lock-variable-name-face
  //        ^ font-lock-variable-use-face
  mat[mat[arr[arr[obj.x]]][x]][arr[0]] = 2;
  //^ font-lock-variable-name-face
  //   ^ font-lock-variable-use-face
  //       ^ font-lock-variable-use-face
  //           ^ font-lock-variable-use-face
  //               ^ font-lock-variable-use-face
  //                  ^ font-lock-property-use-face
  //                       ^ font-lock-variable-use-face
  //                            ^ font-lock-variable-use-face
  //                               ^ font-lock-number-face
  return 0;
};

debug log:

solving f9680886c57 ...
found f9680886c57 in https://yhetil.org/emacs/CAPVBTSeaui3Ek_LPzf=xAVY81yCswBkZukfL0Wz=k8q2Y2Bfbg@mail.gmail.com/

applying [1/1] https://yhetil.org/emacs/CAPVBTSeaui3Ek_LPzf=xAVY81yCswBkZukfL0Wz=k8q2Y2Bfbg@mail.gmail.com/
diff --git a/test/lisp/progmodes/typescript-ts-mode-resources/font-lock.ts b/test/lisp/progmodes/typescript-ts-mode-resources/font-lock.ts
new file mode 100644
index 00000000000..f9680886c57

Checking patch test/lisp/progmodes/typescript-ts-mode-resources/font-lock.ts...
Applied patch test/lisp/progmodes/typescript-ts-mode-resources/font-lock.ts cleanly.

index at:
100644 f9680886c57b5550cc3158f38db8ddcd15f9fbfb	test/lisp/progmodes/typescript-ts-mode-resources/font-lock.ts

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.