Giter VIP home page Giter VIP logo

Comments (5)

ivanz avatar ivanz commented on June 18, 2024 1

Also change the title to "Method return type syntax highlighting issues" or something 👍

from vscode-csharp.

aeschli avatar aeschli commented on June 18, 2024

@TheColorRed Thanks for reporting this. Can you paste the code snippet as well, to speed up the instigations?

from vscode-csharp.

aeschli avatar aeschli commented on June 18, 2024

From @TheColorRed on February 9, 2016 16:48

Here is the code:

public GameObject[] GetItems(string name){
    List<GameObject> items = new List<GameObject>();
    foreach(InventoryItem i in inventoryItems){
        if(i.itemName == name){
            items.Add(i.gameObject);
        }
    }
    return items.ToArray();
}

public GameObject[] GetItems<T>(){
    List<GameObject> items = new List<GameObject>();
    foreach(var i in inventoryItems){
        if(i.GetType() == typeof(T)){
            items.Add(i.gameObject);
        }
    }
    return items.ToArray();
}

Note: the type hinting in the foreach also isn't highlighted.

from vscode-csharp.

ivanz avatar ivanz commented on June 18, 2024

image

from vscode-csharp.

ivanz avatar ivanz commented on June 18, 2024

@DustinCampbell Can you please label this with "Syntax highlighting", so that when I come back to looking at this I can potentially look at fixing it. Or maybe @seraku24 will beat me to it ;)

from vscode-csharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.