Coder Social home page Coder Social logo

Comments (6)

midnight-dev avatar midnight-dev commented on July 3, 2024

Does it really not care about an orphan tag? */
Granted, most of my UnrealScript experience is from 2006, but I thought the compiler was very temperamental about expected and unexpected tokens. To me, it looks like a syntax error.

from unrealscript-language-service.

Xymanek avatar Xymanek commented on July 3, 2024

While I agree that it shouldn't be legal, it works and it's from Src/Core/Classes/Object.uc

from unrealscript-language-service.

midnight-dev avatar midnight-dev commented on July 3, 2024

Yikes. Never noticed that. Which version of Unreal / Unreal Tournament / Unreal Engine is that in? And if this were to be rated as a warning instead of a syntax error, would it help developers? It could be a pain to check if the syntax highlighter should care about orphan tokens like this every time */ is found. I'll see if I can find this issue in UT2004 UScript.

from unrealscript-language-service.

Xymanek avatar Xymanek commented on July 3, 2024

XCOM2: WOTC. So UE3 + some Firaxis additions (but this isn't marked/commented as one of them)

from unrealscript-language-service.

EliotVU avatar EliotVU commented on July 3, 2024

UE2 throws this error: "Error, Unexpected '*/' outside of comment" I think the best choice is to leave this as a valid error (maybe a warning?).

from unrealscript-language-service.

Xymanek avatar Xymanek commented on July 3, 2024

So, I also got Error, Unexpected '*/' outside of comment when I tried to repro it. However, upon further digging, it appears that UCC supports "nested comments" (or something???) since the following perfectly compiles:

/*
/**
 * asdfg
 */
*/

from unrealscript-language-service.

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.