Skip to content

the color of the global functions #1458

@RomanSpector

Description

@RomanSpector

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Type Checking

Expected Behaviour

The global function must differ in color from the local ones

Actual Behaviour

image

Reproduction steps

AAAA = {};
AAAA[1] = true;

local aaaa = {};
aaaa[1] = true;

local b = aaaa[1];

BBBB = function() end
local bbbb = function() end

BBBB()
bbbb()

Additional Notes

editor.tokenColorCustomizations
  "editor.tokenColorCustomizations": {
      "textMateRules": [
          {
              "scope": [
                  "variable.other"
              ],
              "settings": {
                  "foreground": "#57c1ff"
              }
          },
          {
              "scope": [
                  "variable.parameter.function",
                  "variable.parameter",
                  "entity.name.variable"
              ],
              "settings": {
                  "foreground": "#ff9898",
                  "fontStyle": "italic"
              }
          },
          {
              "scope": [
                  "variable.other.property",
                  "variable.language.self",
                  "entity.name.class",
                  "support.type"
              ],
              "settings": {
                  "foreground": "#5df3b4"
              }
          },
          {
              "scope": [
                  "entity.name.label",
                  "keyword.operator"
              ],
              "settings": {
                  "foreground": "#d6d4d4"
              }
          },
          {
              "scope": [
                  "keyword.local",
                  "constant.language"
              ],
              "settings": {
                  "foreground": "#5386c9"
              }
          },
          {
              "scope": [
                  "support.function"
              ],
              "settings": {
                  "foreground": "#e6ecad"
              }
          },
          {
              "scope": [
                  "entity.name.function"
              ],
              "settings": {
                  "foreground": "#9dbad6"
              }
          },
          {
              "scope": [
                  "keyword.control"
              ],
              "settings": {
                  "foreground": "#d293f0"
              }
          },
          {
              "scope": [
                  "entity.name.tag"
              ],
              "settings": {
                  "foreground": "#5386C9"
              }
          },
          {
              "scope": [
                  "text.xml"
              ],
              "settings": {
                  "foreground": "#daeefa"
              }
          },
          {
              "scope": [
                  "entity.other.attribute-name"
              ],
              "settings": {
                  "foreground": "#57c1ff"
              }
          },
          {
              "scope": [
                  "string.quoted.double.xml"
              ],
              "settings": {
                  "foreground": "#5BEC95"
              }
          }
      ]
  },

Log File

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions